DawidKubiak

Zad.4

Mar 22nd, 2020
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.32 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4. void CZY_PARZYSTA (int a)
  5. {
  6.     if (a%2==0)
  7. {
  8.     cout << "true";
  9. }
  10. else
  11. {
  12.     cout << "false";
  13. }}
  14. int main()
  15. {
  16.     int a;
  17.     cout << "Podaj liczbe calkowita, ktora chcesz sprawdzic czy jest parzysta: " << endl;
  18.     cin >> a;
  19.     CZY_PARZYSTA(a);
  20.     return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment