Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main(){
- float salb,desc,emp,salliq;
- printf("digite o salario bruto:");
- scanf("%f",&salb);
- printf("digite o desconto:");
- scanf("%f",&desc);
- printf("digite o valor do possivel emprestimo:");
- scanf("%f",&emp);
- salliq=salb-desc;
- if(emp>(salliq*30/100))
- printf("nao emprestado!");
- else
- printf("emprestado!");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment