Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main(){
- float custo_total, custo_unit = 0.50, custo_fixo = 600, quantidade;
- printf("Entre com a quantidade de parafusos\n");
- scanf("%f",&quantidade);
- custo_total = (custo_unit * quantidade) + custo_fixo;
- printf("O custo total e: %f", custo_total);
- }
- //a.
- real : custo_total, custo_unit, custo_fixo, quantidade
- tela "entre com a quantidade de parafusos"
- ler quantidade
- custo_total = (custo_unit * quantidade) + custo_fixo
- tela"custo_total"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement