Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstdlib>
- using namespace std;
- int czy_parzysta()
- {
- int x;
- cout<<"wpisz liczbe "<<endl;
- cin>>x;
- if (x%2==0)
- {cout<<"liczba jest parzysta"<<endl;}
- else { cout<<"liczba jest nieparzysta"<<endl;};
- }
- int main()
- {
- czy_parzysta();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement