Untitled

Anonymous
c_cpp
11/02/2023 11:44 AM
500 B
15
Indexable
using namespace std;
#include <iostream>

int main()
{   
	int x, y;
	cin >> x >> y;
	setlocale(LC_ALL, "Russian");

	if (x > 0 and y > 0) {
		cout << "1 четверть";
	}
	if (x < 0 and y > 0) {
		cout << "2 четверть";
	}
	if (x < 0 and y < 0) {
		cout << "3 четверть";
	}
	if (x > 0 and y < 0) {
		cout << "4 четверть";
	}
}
Editor is loading...