JakubKaczmarek_123

zadanie 3

Jan 22nd, 2021
48
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. #include <math.h>
  3. using namespace std;
  4. bool CZY_PARZYSTA(int a);
  5. int main(){
  6. cout << CZY_PARZYSTA(4) << endl;
  7. cout << CZY_PARZYSTA(5) << endl;
  8. cout << CZY_PARZYSTA(7) << endl;
  9. cout << CZY_PARZYSTA(190) << endl;
  10.  
  11. }
  12. bool CZY_PARZYSTA(int a){
  13. if (a % 2 == 0) return true;
  14. else return false;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment