MeehoweCK

Untitled

Nov 16th, 2020
476
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.29 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     int liczba;
  8.     cout << "Wpisz liczbe naturalna: ";
  9.     cin >> liczba;
  10.     if(liczba % 2 == 0)
  11.         cout << "Podana liczba jest parzysta\n";
  12.     else
  13.         cout << "Podana liczba jest nieparzysta\n";
  14.     return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment