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