Advertisement
Guest User

Untitled

a guest
May 25th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. int n,a,maxx=-2100000000;
  8. cin>>a;
  9. for(int i=1;i<=n;i++)
  10. {
  11. cin>>a;
  12. if(a>maxx)
  13. maxx=a;
  14.  
  15. }
  16. cout <<maxx << endl;
  17. return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement