Advertisement
Guest User

Numere

a guest
Nov 22nd, 2019
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.29 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. int main()
  4. {
  5.     int n,x,P=0,i;
  6.     cin>>n;
  7.     for (i=1;i<=n;i++)
  8.     {
  9.         cin>>x;
  10.         if(x%2==0)
  11.         {
  12.             P=x;
  13.             break;
  14.         }
  15.     }
  16.     if(P!=0) cout<<P;
  17.     else cout<<"IMPOSIBIL";
  18.    return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement