Untitled

 avatar
unknown
c_cpp
2 years ago
322 B
3
Indexable
#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);
}
Editor is loading...