Untitled

Anonymous
c_cpp
11/12/2023 10:22 AM
604 B
16
Indexable
#include <iostream>
using namespace std;
int koresh(int x, int y) {
	if (x > 0 && y > 0) {
		cout << 1;
		return 1;
	}
	else if (x > 0 && y < 0) {
		cout << 4;
		return 4;
	}
	else if (x < 0 && y < 0) {
		cout << 3;
		return 3;
	}
	else if (x < 0 && y > 0) {
		cout << 2;
		return 2;
	}
	else cout << "не ври, бро";
}

int main()
{
	setlocale(LC_ALL, "Russian");
	int x;
	int y;
	cin >> x >> y;
	koresh(x , y);
}
Editor is loading...