Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- setlocale(0, "");
- int a, b;
- cout << "Введiть трьохзначне число: "; cin >> a;
- if(!(((a/100) + ((a % 100) / 10) + (a % 10)) % 2)) {
- cout << "Сума цифр є парною.";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement