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