Advertisement
Ahlushko

Untitled

May 30th, 2019
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.27 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5.     setlocale(0, "");
  6.     int a, b;
  7.     cout << "Введiть трьохзначне число: "; cin >> a;
  8.     if(!(((a/100) + ((a % 100) / 10) + (a % 10)) % 2)) {
  9.         cout << "Сума цифр є парною.";
  10.     }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement