Untitled
unknown
c_cpp
2 years ago
375 B
8
Indexable
using namespace std;
#include <iostream>
int main()
{
int x, y;
cin >> x >> y;
setlocale(LC_ALL, "Russian");
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 четверть";
}
}Editor is loading...