SHARE
TWEET

Numere

a guest Nov 22nd, 2019 93 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top