Untitled
unknown
plain_text
a month ago
271 B
2
Indexable
Never
#include <iostream> using namespace std; int main(){ int a, b, c; cin >> a >> b >> c; int sum =0 sum = a+b+c; if ((sum % 2 ==0 && sum % 10 ==6) || (sum %2!=0 && sum % 10 == 9)){ cout << sum "магическое"; }else cout << sum "не магическое"; }