Laitofai

CH | Cycle

Dec 22nd, 2017
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.23 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     int n, mn;
  8.     cin>>n;
  9.     mn=n;
  10.     while(1){
  11.         cin>>n;
  12.         if(n==0)break;
  13.         if(n%2==0)mn=min(mn,n);
  14.     }
  15.     cout<<mn;
  16.     return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment