nikolas_serafini

Lista 4 - Exercício 12

Jun 21st, 2013
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.35 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5.     int i = 0,max;
  6.     float valor;
  7.  
  8.     printf("Entre com o valor maximo do leilao :\n");
  9.     scanf("%d",&max);
  10.     valor = 0.01;
  11.  
  12.     float vector[max*100];
  13.    
  14.     while (valor <= max)
  15.     {
  16.         vector[i] = valor;
  17.         printf("%.2f\n",vector[i]);
  18.         i++;
  19.         valor = valor + 0.01;
  20.     }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment