Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int a,b;
- bool CZY_PARZYSTA(int a){
- b=a%2;
- if(b==0){
- return true;
- }
- else{
- return false;
- }
- }
- int main()
- {
- cout << "Podaj liczbe ca³kowit¹: " << endl;
- cin >> a;
- cout << CZY_PARZYSTA(a) << endl;
- return 0;
- }
Add Comment
Please, Sign In to add comment