Untitled
unknown
c_cpp
2 years ago
451 B
5
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...