Advertisement
henriqueforino

LISTA2_EX4 2014/02

Sep 30th, 2014
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.54 KB | None | 0 0
  1. //ALUNO: Luiz Henrique Forino
  2. //PROGRAMAÇÃO I, PROFESSOR PX
  3. //2014/02
  4.  
  5. Program EX04_LISTA02 ;
  6.  
  7. var x, y :integer; //x = salário bruto, y = valor da prestação
  8. const n = 0.3;
  9.  
  10. Begin
  11.      writeln ('Digite o valor do seu sallário bruto: ');
  12.      readln (x);
  13.      writeln ('Digite o valor do empréstimo: ');
  14.      readln (y);
  15.      
  16.      
  17.      if y > (x*n) then
  18.       begin
  19.         writeln ('Empréstimo negado')
  20.       end;
  21.      if y < (x*n) then
  22.       begin
  23.         writeln ('Empréstimo concedido')
  24.       end    
  25.          
  26. End.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement