// A demonstration of the conditional operator.
 // demonstrates the conditional operator
 //
  #include <iostream.h>
 int main()
 {
 int x, y, z;
 cout << "Enter two numbers.\n";
 cout << "First: "; 
cin >> x;
 cout << "\nSecond: ";
 cin >> y;
 cout << "\n";

 if (x > y)
 z = x;
se
 z = y;

 cout << "z: " << z;
 cout << "\n";

 z = (x > y) ? x : y;

 cout << "z: " << z;
 cout << "\n";
 return 0;
 }