Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- void CZY_PARZYSTA (int a)
- {
- if (a%2==0)
- {
- cout << "true";
- }
- else
- {
- cout << "false";
- }}
- int main()
- {
- int a;
- cout << "Podaj liczbe calkowita, ktora chcesz sprawdzic czy jest parzysta: " << endl;
- cin >> a;
- CZY_PARZYSTA(a);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment