Advertisement
Guest User

Untitled

a guest
Jan 20th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. int n,x,g=0,i;
  4.  
  5. int main()
  6. {
  7.  
  8. cin >> n;
  9. while(g==0 && cin>> x)
  10. if(x%2==0)
  11. {
  12. g=1;
  13. cout << x;
  14. }
  15. if(g==0)
  16. cout << "IMPOSIBIL";
  17. return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement