Advertisement
Lukasz_Miskiewicz

Zadanie 4 poprawione

Mar 31st, 2020
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. int a;
  4. bool czy_parzysta(int a)
  5. {
  6. if(a%2==0)
  7. {return true;}
  8. else
  9. {return false;}
  10. }
  11.  
  12. int main()
  13. {
  14. cout<<"podaj liczbฤ™"<<endl;
  15. cin>>a;
  16. cout<<czy_parzysta(a);
  17. return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement