// // Program to test "max" function. // #include #include // "max" function. // Post: Returns maximum of a and b. int max(int a, int b) { if (a > b) return a; else return b; } int main(void) { int a, b; cout << "Enter two integers:\n"; cin >> a >> b; cout << "Max of " << a << " and " << b << " is " << max(a,b) << endl; return EXIT_SUCCESS; }