#include <iostream>
using namespace std;
int main()
{
int firstNum, secondNum;
cout << "Enter first integers: ";
cin >> firstNum;
cout << "Enter second integers: ";
cin >> secondNum;
// print the greater number out of the given two numbers
cout << "max :" << (firstNum > secondNum ? firstNum : secondNum);
return 0;
}
Output:
Comments
Leave a comment