Untitled

 avatar
unknown
plain_text
2 years ago
302 B
1
Indexable
#include <iostream>
using namespace std;
int main() {
	setlocale(LC_ALL, "Russian");
	int a, b, c, summ;
	cin >> a >> b >> c;
	summ = a + b + c;
	if (summ / 2 && summ%10==6) {
		cout << summ << " " << "магическое";
	}
	else(cout << summ << " " << "не магическое");
}
	
Editor is loading...