Advertisement
Josif_tepe

Untitled

Jan 20th, 2024
574
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.47 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5.     int x;
  6.     cin >> x;
  7.    
  8.     if(x < 10) {
  9.         cout << "Pomal od 10" << endl;
  10.     }
  11.     else if(x > 10) {
  12.         cout << "Pogolemo od 10" << endl;
  13.     }
  14.     else if(x % 2 == 0) {
  15.         cout << "PAREN" << endl;
  16.     }
  17.    
  18.    
  19.     if(x % 2 == 1) {
  20.         cout << "NEPAREN" << endl;
  21.     }
  22.     else if(x % 2 == 0) {
  23.         cout << "PAREN" << endl;
  24.     }
  25.    
  26.    
  27.    
  28.     return 0;
  29. }
  30.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement