Advertisement
Guest User

Untitled

a guest
Sep 26th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. #include <iostream>
  2. #include <stdlib.h>
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. int x = 2;
  8.  
  9.  
  10.  
  11. while (x % 2 == 0)
  12. {
  13. cin >> x;
  14. cout << "Broj je paran..." << endl;
  15.  
  16. }
  17. if ( x % 2 > 0)
  18. {
  19. cout << "Broj nije paran..." << endl;
  20.  
  21. exit(0);
  22.  
  23. }
  24.  
  25.  
  26. return 0;
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement