PiotrJurek

Zad4

Mar 29th, 2020
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. bool CZY_PARZYSTA(int a)
  6. {
  7. if(a%2==0)
  8. {
  9. return true;
  10. }
  11. else
  12. {
  13. return false;
  14. }
  15. }
  16.  
  17. int main()
  18. {
  19. cout << CZY_PARZYSTA(0) << endl;
  20. cout << CZY_PARZYSTA(5) << endl;
  21. cout << CZY_PARZYSTA(16) << endl;
  22. return 0;
  23. }
Add Comment
Please, Sign In to add comment