#include <iostream>
using namespace std;
int main()
{
int a;
cout << "Enter 3-digit number: ";
cin >> a;
int c1, c2;
c2 = (a / 10) % 10;
c1 = a / 100;
if (c1 > c2)
cout << "The first number is greater than the second! " << endl;
else if (c1 < c2)
cout << "The second number is greater than the first! " << endl;
else
cout << "The second and first numbers are equal! " << endl;
getchar();
getchar();
return 0;
}
Перед публікацією, радимо ознайомиться з правилами!
Знайшли помилку?
Ви можете повідомити про це адміністрацію.
Виділіть текст і натисніть CTRL+Enter