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