Guest User

Untitled

a guest
Feb 19th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.59 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("Entre com o salario do funcionario(R$): ");
  9.       scanf("%f,&sal_func");
  10.  
  11.       printf("Entre com o valor da prestacao(R$): ");
  12.       scanf("%f,&val_prest");
  13.    
  14.  
  15.     if(val_prest<sal_func*30/100)
  16.         {
  17.                                  printf("O emprestimo pode se concedido!");  
  18.                        
  19.         }else{
  20.                                   printf("O emprestimo não pode se concedido!");
  21.         }
  22.     system("pause");
  23.     return(0);                    
  24.      
  25. }
Add Comment
Please, Sign In to add comment