nikolas_serafini

Lista 3 - Exercício 46

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