Конфуций .
Профи
(876)
1 месяц назад
#include <iostream>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
if (x == 0 && y == 0) {
cout << "The point is on the origin." << endl;
} else if (x == 0) {
cout << "The point is on the y-axis." << endl;
} else if (y == 0) {
cout << "The point is on the x-axis." << endl;
} else {
cout << "The point is in the first quadrant." << endl;
}
return 0;
}