Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int CZYPARZYSTA(int a)
- {
- if(a%2==0)
- {
- return true;
- }
- {
- return false;
- }
- }
- int main()
- {
- int liczba;
- cout << "Zwrocona 1(true) - parzysta, Zwrocone 0(false) - nieparzysta. Podaj liczbe calkowita:" << endl;
- cin >> liczba;
- cout << CZYPARZYSTA(liczba);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment