SHARE
TWEET

Untitled

a guest May 25th, 2019 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top