Advertisement
Josif_tepe

Untitled

Jan 18th, 2024
522
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.     int n;
  6.     cin >> n;
  7.    
  8.     int ostatok = n % 2;
  9.     if(ostatok == 0) {
  10.         cout << "PAREN" << endl;
  11.     }
  12.     if(ostatok == 1) {
  13.         cout << "NEPAREN" << endl;
  14.     }
  15.    
  16.    
  17.     return 0;
  18. }
  19.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement