Untitled

mail@pastecode.io avatar
unknown
c_cpp
11 days ago
579 B
0
Indexable
Never
#include <iostream>
using namespace std;

int main() {
	setlocale(LC_ALL, "Russian");
	int a, b, c;
	cin >> a >> b >> c;
	if (a > b and a > c) {
		if (b + c == a) {
			cout << "Вырожденный";
		}
		else {
			cout << "Невырожденный";
		}
	}
	if (b > a and b > c) {
		if (a + c == b) {
			cout << "Вырожденный";
		}
		else {
			cout << "Невырожденный";
		}
	}
	if (c > a and c > b) {
		if (a + b == c) {
			cout << "Вырожденный";
		}
		else {
			cout << "Невырожденный";
		}
	}
}
Leave a Comment