nikolas_serafini

Lista 3 - Exercício 19

Jun 11th, 2013
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.33 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5.     int number,i,bignum = 0;
  6.  
  7.     for (i = 0; i < 100; i++)
  8.     {
  9.         printf("Entre com o numero :\n");
  10.         scanf("%d",&number);
  11.  
  12.         if (number>bignum)
  13.         {
  14.             bignum = number;
  15.         }
  16.     }
  17.  
  18.     printf("O maior numeor eh %d\n",bignum);
  19.     return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment