Advertisement
rengetsu

ProcedurProgramavimas_2.03

Mar 12th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.31 KB | None | 0 0
  1. #include <iostream>
  2. #include <iomanip>
  3. using namespace std;
  4. int main()
  5. {
  6. int n, z[11], m=1000001;
  7. cin>>n;
  8. for(int i=0;i<n;i++)
  9. {
  10. cin>>z[i];
  11.     if(z[i]%2==0)
  12.     {
  13.         if(z[i]<m)
  14.         {
  15.         m=z[i];
  16.         }
  17.     }
  18. }
  19.     if(m==1000001){cout<<"No"<<endl;}else{cout<<m<<endl;}
  20. return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement