Guest User

Untitled

a guest
Feb 19th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.60 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main()
  5. {
  6.  float sal_func,val_prest;
  7.  
  8.       printf("\nEntre com o salario do funcionario(R$): ");
  9.       scanf("%f",&sal_func);
  10.  
  11.       printf("\nEntre com o valor da prestacao(R$): ");
  12.       scanf("%f",&val_prest);
  13.    
  14.  
  15.     if(val_prest<sal_func*30/100)
  16.         {
  17.                                  printf("\nO emprestimo pode se concedido!\n\n");  
  18.                        
  19.         }else{
  20.                                   printf("\nO emprestimo nao pode se concedido!\n\n");
  21.         }
  22.     system("pause");
  23.     return(0);                    
  24.      
  25. }
Add Comment
Please, Sign In to add comment