#include <iostream>
using namespace std;
int main()
{
float x, y;
cout << "Enter x: ";
cin >> x;
cout << "Enter y: ";
cin >> y;
if (x > 0 && y > 0)
cout << "1 quarter " << endl;
if (x < 0 && y > 0)
cout << "2 quarter " << endl;
if (x < 0 && y < 0)
cout << "3 quarter " << endl;
if (x > 0 && y < 0)
cout << "4 quarter " << endl;
if (x == 0 && y != 0)
cout << "Oy " << endl;
if (x != 0 && y == 0)
cout << "Ox " << endl;
if (x == 0 && y == 0)
cout << "(0;0) " << endl;
getchar();
getchar();
return 0;
}
Перед публікацією, радимо ознайомиться з правилами!
Знайшли помилку?
Ви можете повідомити про це адміністрацію.
Виділіть текст і натисніть CTRL+Enter