define a function calcnum() that takes one integer parameter and returns 5 times the parameter.
The code in C is:
#include <iostream>
#inlcude <stdio.h>
int calcnum(int number) {
return (number*number*number*number*number);
int main()
{
int input;
int result;
cout << "Enter any no.: ";
cin >> input;
result = calcnuml(input);
cout << result << endl;
return 0;
}
What is the use of function?
A function is merely a "chunk" of code that may be used repeatedly rather than having to be written out repeatedly. With the use of functions, a programmer can divide a larger issue into smaller parts, each of which can carry out a specific function.
Once a function is defined, a programmer can call it whenever they need it by just using its name. In order for the function to work, it also likely needs some inputs or arguments, which are passed to the function each time it is called.
To learn more about a function, use the link given
https://brainly.com/question/20476366
#SPJ4