Advertisement
rahat62

Toph-Who Will Get the Job?

Jan 30th, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.25 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main ()
  4.  
  5. {
  6.     int n,i,max=0,t;
  7.     scanf("%d",&t);
  8.     for(i=1;i<=t;i++)
  9.     {
  10.         scanf("%d",&n);
  11.         if(max<n)
  12.         {
  13.             max=n;
  14.         }
  15.  
  16.     }
  17.  
  18.     printf("%d\n",max);
  19.  
  20.     return 0;
  21.  
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement