Untitled
user_7248805
plain_text
3 years ago
299 B
4
Indexable
#include <iostream>
using namespace std;
int main()
{
int k, x, b, y;
cin >> k >> b;
cin >> x;
y = k * x + b;
if (y > 0 && x > 0)cout << "I chetvert";
if (y > 0 && x < 0)cout << "II chetvert";
if (y < 0 && x < 0)cout << "III chetvert";
if (y < 0 && x > 0)cout << "IV chetvert";
}Editor is loading...