nikolas_serafini

Lista 2 - Exercício 19

May 25th, 2013
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.44 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main()
  5. {
  6.     float sal,off,liquids,mon;
  7.  
  8.     printf("Entre com o seu salario bruto :\n"); scanf("%f",&sal);
  9.     printf("Entre com o valor de seus descontos :\n"); scanf("%f",&off);
  10.     printf("Entre com o valor desejado o emrpestimo :\n"); scanf("%f",&mon);
  11.  
  12.     liquids = sal- off;
  13.     if (mon<=(liquids*0.3))
  14.     {
  15.         printf("Emprestimo concedido!\n");
  16.     }
  17.     else printf("Emprestimo negado!\n");
  18.     return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment