Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main()
- {
- int matricula;
- float salariofixo,valordevenda,comissao;
- system("color 0d");
- printf("informe a matricula do vendedor:\n");
- scanf("%d",&matricula);
- printf("informe o salario do vendedor:\n");
- scanf("%f",&salariofixo);
- printf("informe o valor total de vendas por ele efetuada:\n");
- scanf("%f",&valordevenda);
- comissao = valordevenda * ( valordevenda <= 1000 ? 0.3 : 0.5 );
- printf("a sua comissao eh de: %.02f\n",comissao);
- system("PAUSE");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement