Behind the wheel, the Florida driving test, turn about, shifting gears, parking, backing up, stop quickly, stop signs, signal & turns
Answer:
I’m not sure if you can only teachers can acess that
Explanation:
Explanation:
A routine or subroutine, also referred to as a function procedure and sub program is code called and executed anywhere in a program. FOr example a routine may be used to save a file or display the time.
Answer:
// here is code in C++.
#include <bits/stdc++.h>
using namespace std;
// function to compute sum and product
void square(int input)
{
// variable to store the square of number
long long squ_num;
calculate the square of number
squ_num=pow(input,2);
// print the output
cout<<"square of "<< input<<" is: "<<squ_num<<endl;
}
// driver function
int main()
{
int n;
// read the number until user enter 0
do{
cout<<"enter a number!! (0 to stop):";
// read the input from user
cin>>n;
// call the function to calculate square of input number
square(n);
}while(n!=0);
return 0;
}
Explanation:
Declare a variable "n" to read the input number from user.Call the function square() with parameter "n".In this function, it will calculate the square of the input number and print it.This will repeat until user enter 0 as input.Program will ends when user give 0 as input.
Output:
enter a number!! (0 to stop):5
square of 5 is: 25
enter a number!! (0 to stop):7
square of 7 is: 49
enter a number!! (0 to stop):11
square of 11 is: 121
enter a number!! (0 to stop):0
You can call/execute a function in the body of a loop is a true statement.
<h3>Can you call a function in a loop?</h3>
Yes, one can be able to call a function that is said to be inside from a loop as well. The function is known to be one that can be called each time the loop is said to have executes and it is one that will stop calling after the loop finishes.
<h3>When the loop body is executed it is called?</h3>
A single execution of the loop body is known to be what we call an iteration. The loop is one that can makes three iterations.
Hence, You can call/execute a function in the body of a loop is a true statement.
Learn more about loop from
brainly.com/question/26568485
#SPJ1