sandra0309

audi4.vezba6

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