Advertisement
henriqueforino

Lista1_Ex1

Dec 11th, 2013
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.52 KB | None | 0 0
  1. // Aluno: Luiz Henrique Forino
  2. // Programação 1, professor Thiago PX
  3.  
  4. program L1_Q1;
  5. const
  6.     porcent= 0.3   ;
  7. var
  8.     salariob, prest, emprest : real; //prest = prestação, emprest = empréstimo
  9. begin
  10.     writeln ('Digite o valor do seu salário: ');
  11.     readln (salariob);
  12.     writeln ('Digite o valor do empréstimo: ');
  13.     readln (prest);
  14.    
  15.     emprest:= salariob*porcent;
  16.    
  17.     if prest <= emprest then
  18.         writeln ('Empréstimo concedido com sucesso!')
  19.     else
  20.         writeln ('Empréstimo negado com sucesso!');
  21.         readln ();
  22. end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement