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