Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- // Karol WoŸniak 18.03.2020r / poprawka 23.03.2020
- int liczba;
- bool CZY_PARZYSTA(int m)
- {
- if(m%2==0)
- {
- return true;
- }
- else
- {
- return false;
- }
- }
- int main()
- {
- cout << "Podaj liczbe calkowita: ";
- cin >> liczba;
- cout << CZY_PARZYSTA(liczba);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement