#include <iostream> using namespace std; int main() { int a, b; cout << "Enter first number: "; cin >> a; cout << "Enter second number: "; cin >> b; if (a == b) { cout << "Both numbers are the same" << endl; } else if (a < b) { cout << a << " is smaller than " << b << endl; } else { cout << a << " is larger than " << b << endl; } return 0; }
Get Answers For Free
Most questions answered within 1 hours.