Advertisement
KarolWozniak

Zadanie 4

Mar 18th, 2020
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.36 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4. // Karol WoŸniak 18.03.2020r / poprawka 23.03.2020
  5. int liczba;
  6.  
  7. bool CZY_PARZYSTA(int m)
  8. {
  9.     if(m%2==0)
  10.     {
  11.         return true;
  12.     }
  13.     else
  14.     {
  15.         return false;
  16.     }
  17. }
  18.  
  19. int main()
  20. {
  21.     cout << "Podaj liczbe calkowita: ";
  22.     cin >> liczba;
  23.     cout << CZY_PARZYSTA(liczba);
  24.     return 0;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement