Advertisement
Guest User

Untitled

a guest
Oct 17th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. int n,cifMin=9,nrMax=0;
  2. cin>>n;
  3. while(n>0)
  4. {
  5. int x;
  6. cin>>x;
  7. int copie=x;
  8.  
  9.  
  10.  
  11. if(x<=cifMin)
  12. if(copie>=nrMax)
  13. {
  14. cifMin = x;
  15. nrMax = copie;
  16. }
  17.  
  18. n=n-1;
  19. }
  20. cout<<nrMax;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement