Reginaldojs

exercicio 17,lista 2

May 15th, 2012
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.46 KB | None | 0 0
  1. #include<stdio.h>
  2. int main(){
  3.         float salb,desc,emp,salliq;
  4.         printf("digite o salario bruto:");
  5.         scanf("%f",&salb);
  6.         printf("digite o desconto:");
  7.         scanf("%f",&desc);
  8.         printf("digite o valor do possivel emprestimo:");
  9.         scanf("%f",&emp);
  10.              salliq=salb-desc;
  11.         if(emp>(salliq*30/100))
  12.              printf("nao emprestado!");
  13.         else
  14.              printf("emprestado!");
  15.         return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment