Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <math.h>
- int main()
- {
- float sal,firstcheck,secondcheck,account;
- printf("Entre com o valor do salario recebido : \n"); scanf("%f",&sal);
- printf("Entre com o valor do primeiro cheque emitido : \n"); scanf("%f",&firstcheck);
- printf("Entre com o valor do segundo cheque emitido : \n"); scanf("%f",&secondcheck);
- account = sal - ((1.00038)*firstcheck + (1.00038)*secondcheck);
- printf("O seu saldo atual eh de : %f reais\n",account);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment