Untitled
unknown
plain_text
3 years ago
432 B
6
Indexable
#include <iostream>
using namespace std;
int main() {
setlocale(LC_ALL, "Russian");
float y, x, b, k;
cin >> k >> b;
cin >> x;
y = k * x + b;
if (x >= 0 && y >= 0) cout << "В I четверти";
else if (x <= 0 && y >= 0) cout << "Во II четверти";
else if (x <= 0 && y <= 0) cout << "В III четверти";
else if (x >= 0 && y <= 0) cout << "В IV четверти";
}Editor is loading...