Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <limits.h>
- int main()
- {
- int i;
- float value,smallest = INT_MAX;
- for (i = 0; i < 50; i++)
- {
- printf("Entre com o valor :\n");
- scanf("%f",&value);
- if (value < smallest)
- {
- smallest = value;
- }
- }
- printf("Menor valor = %f\n",smallest);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment