Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
410 B
0
Indexable
Never
#include <iostream>
using namespace std;
int main()
{
	float k, b, x, y;
	cin >> k >> b;
	cin >> x;
	y = k * x + b;
	while (true) {
		if (x > 0 || y > 0) {
			cout << "I";
			break;
		};
		if (x < 0 || y > 0) {
			cout << "II";
			break;
		};
		if (x < 0 || y < 0) {
			cout << "III";
			break;
		};
		if (x > 0 || y < 0) {
			cout << "VI";
			break;
		}
		else break;
	}
	
	
}