//
// Program to test "max" function.
//

#include <iostream.h>
#include <stdlib.h>

// "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;
}