Advertisement
Lukasz_Miskiewicz

Zadanie 4

Mar 24th, 2020
139
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 <cstdlib>
  3.  
  4. using namespace std;
  5.  
  6. int czy_parzysta()
  7. {
  8. int x;
  9. cout<<"wpisz liczbe "<<endl;
  10. cin>>x;
  11. if (x%2==0)
  12. {cout<<"liczba jest parzysta"<<endl;}
  13. else { cout<<"liczba jest nieparzysta"<<endl;};
  14. }
  15.  
  16.  
  17. int main()
  18. {
  19.  
  20. czy_parzysta();
  21.  
  22. return 0;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement