Advertisement
Schknheit

Letra a

Mar 20th, 2015
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.48 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main(){
  4.    
  5.     float custo_total, custo_unit = 0.50, custo_fixo = 600, quantidade;
  6.    
  7.     printf("Entre com a quantidade de parafusos\n");
  8.     scanf("%f",&quantidade);
  9.     custo_total = (custo_unit * quantidade) + custo_fixo;
  10.     printf("O custo total e: %f", custo_total);
  11. }
  12.  
  13.  
  14. //a.
  15.  
  16. real : custo_total, custo_unit, custo_fixo, quantidade
  17. tela "entre com a quantidade de parafusos"
  18. ler quantidade
  19. custo_total = (custo_unit * quantidade) + custo_fixo
  20. tela"custo_total"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement