Untitled

 avatar
unknown
plain_text
2 years ago
271 B
6
Indexable
#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 "не магическое";
}
Editor is loading...