Untitled

mail@pastecode.io avatar
unknown
c_cpp
6 months ago
322 B
0
Indexable
Never
#include <iostream>
using namespace std;

void koord(int x, int y) {
	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";
	}
}

int main()
{
	int x, y;
	cin >> x >> y;

	koord(x, y);
}