fork download
  1. #include <iostream>
  2. #include <cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6. int a;
  7. cin >> a;
  8.  
  9. cout << "Vnesite Broj" << endl;
  10.  
  11. if(0 > a)
  12. cout << "Brojot e negativen" << endl;
  13.  
  14. else
  15. {
  16. if(a % 2 == 0)
  17. cout << "Brojot e positiven i e paren" << endl;
  18. else
  19. cout << "Brojot e positiven a ne e paren" << endl;
  20. }
  21. system("PAUSE");
  22. return 0;
  23. }
Success #stdin #stdout #stderr 0.01s 5288KB
stdin
3
stdout
Vnesite Broj
Brojot e positiven a ne e paren
stderr
sh: 1: PAUSE: not found