Untitled

Anonymous
c_cpp
11/12/2023 10:06 AM
432 B
18
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...