#include void FindMax(int, int); // the function prototype int main() { int firstnum, secnum; cout << "\nEnter a number: "; cin >> firstnum; cout << "Great! Please enter a second number: "; cin >> secnum; FindMax(firstnum, secnum); // the function is called here return 0; } // following is the function FindMax() void FindMax(int x, int y) { // start of function body int maxnum; // variable declaration if (x >= y) // find the maximum number maxnum = x; else maxnum = y; cout << "\nThe maximum of the two numbers is " << maxnum << endl; return; } // end of function body and end of function