Function Integer cube(Integer num) Return num * num * num End Function Write a main module that contains a statement that passes
the value 4 to this function and assigns its return value to the variable result. Write a statement that calls the display module and passes these variables to it.
int result=cube(4);//result stores the value of cube(4).
cout<<result;//displaying it to the screen.
return 0;
}
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.
Timekeeping has been a part of society since Ancient Egypt. The use of spring-powered mechanisms allowed clocks to be made smaller ... Essentially, the church bells and the mechanical clock now became the monitor of the working day.