cout << "Enter first number: "; cin >> firstNum; cout << "Enter second number: "; cin >> secondNum; if (firstNum > secondNum) { cout << "The largest number is: " << firstNum << endl; } else { cout << "The largest number is: " << secondNum << endl; } return 0;
using namespace std;
int main() {
cout << "Enter first number: ";int firstNum, secondNum;
cin >> firstNum;
cout << "Enter second number: ";
cin >> secondNum;
if (firstNum > secondNum) {
cout << "The largest number is: " << firstNum << endl;
} else {
cout << "The largest number is: " << secondNum << endl;
}
return 0;
}