Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <iomanip>
- using namespace std;
- int main()
- {
- int n, z[11], m=1000001;
- cin>>n;
- for(int i=0;i<n;i++)
- {
- cin>>z[i];
- if(z[i]%2==0)
- {
- if(z[i]<m)
- {
- m=z[i];
- }
- }
- }
- if(m==1000001){cout<<"No"<<endl;}else{cout<<m<<endl;}
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement