Advertisement
Josif_tepe

Untitled

May 7th, 2021
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.24 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. void parnost(int a) {
  6.    if (a % 2 == 0)
  7.    {
  8.        cout << "Paren" << endl;
  9.  
  10. }
  11. else {cout << "Neparen" << endl;}
  12. }
  13.  
  14. int main()
  15. {
  16.     int a;
  17.     cin >> a;
  18.     parnost(a);
  19.     return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement