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