#include <iostream>
int main() {
int first, second;
std::cout << "Enter first number: ";
std::cin >> first;
std::cout << "Enter second number: ";
std::cin >> second;
std::cout << "max :" << (first > second ? first : second) << std::endl;//displays the maximum of the two numbers
system("pause");
return 0;
}
Comments
Leave a comment