Untitled
Anonymous
c_cpp
11/12/2023 10:11 AM
536 B
11
Indexable
#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);
}
Editor is loading...