#include <iostream>
using namespace std;
int main()
{
int x, y;
cout << "Enter x: ";
cin >> x;
cout << "Enter y: ";
cin >> y;
if (x % y == 0)
cout << "y is the divisor! " << endl;
else if (y % x == 0)
cout << "x is the divisor! " << endl;
else
cout << "There are no divisors! " << endl;
getchar();
getchar();
return 0;
}
Перед публікацією, радимо ознайомиться з правилами!
Знайшли помилку?
Ви можете повідомити про це адміністрацію.
Виділіть текст і натисніть CTRL+Enter