Answer:
#include <iostream>
using namespace std;
int cube(int num)//function cube..
{
return num*num*num;
}
int main() {
int result=cube(4);//result stores the value of cube(4).
cout<<result;//displaying it to the screen.
return 0;
}
Step-by-step explanation:
The above code is in C++ language.The function cube is passed with value 4 and the result of it is stored in the variable result of integer type.Then the result is displayed using the cout. Which is used to print the statement to the output screen.