WiktoriaRatajczyk

Zadanie 4

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