#include // declare function prototypes above the main int maximum (int, int, int); void print_message(void); int main(){ // a, b, and c will be arguments to the function call. int a, b, c; cout << endl << "Enter three integers: "<< endl; cin >> a >> b >> c; // declare an integer to hold the value returned from a function int max_number; // calling the maximum function max_number = maximum(a, b, c); cout << "Max number is: " << max_number << endl; // This is another way to call that function: // cout << "Maximum number is: " << maximum(a, b, c) << endl; // calling void function print_message(); return 0; } // function definitions are placed outside the main function int maximum(int x, int y, int z) { int max = x; if (y > max) { max = y; } if (z > max) { max = z; } return max; } void print_message(){ cout << endl << "Void function was called" << endl << endl; }