Untitled
#include <iostream> using namespace std; void koresh(int x, int y) { if (x > 0 && y > 0) { cout << 2; } else if (x > 0 && y < 0) { cout << 4; } else if (x < 0 && y < 0) { cout << 3; } else if (x < 0 && y > 0) { cout << 1; } else cout << "не ври, бро"; } int main() { setlocale(LC_ALL, "Russian"); int x; int y; cin >> x >> y; koresh(x , y); }