fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. int liczba;
  7. cout << "Podaj liczbe: ";
  8. cin >> liczba;
  9. if (liczba%2==0)
  10. cout << "Liczba jest parzysta.";
  11. else
  12. cout << "Liczba jest nieparzysta.";
  13. return 0;
  14. }
Success #stdin #stdout 0.01s 5404KB
stdin
Standard input is empty
stdout
Podaj liczbe: Liczba jest nieparzysta.