Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main ()
- {
- int n,i,max=0,t;
- scanf("%d",&t);
- for(i=1;i<=t;i++)
- {
- scanf("%d",&n);
- if(max<n)
- {
- max=n;
- }
- }
- printf("%d\n",max);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement