Untitled
#include <iostream> using namespace std; int main() { int a, b,c; cin >> a; b = a / 100; c = a % 100; if ((b / 10) + (b % 10) == (c / 10) + (c % 10)) cout << "YES"; else cout << "NO"; }
#include <iostream> using namespace std; int main() { int a, b,c; cin >> a; b = a / 100; c = a % 100; if ((b / 10) + (b % 10) == (c / 10) + (c % 10)) cout << "YES"; else cout << "NO"; }