Advertisement
alex326

Untitled

Jan 22nd, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. problema 335
  2.  
  3. #include <iostream>
  4. using namespace std;
  5. int main()
  6. {
  7. int n,mn=1001,x;
  8. cin>>n;
  9. while (n!=0){
  10. cin>>x;
  11. if (x<mn)
  12. mn=x;
  13. n--;
  14. }
  15. cout<<mn;
  16. return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement