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