Advertisement
henriqueforino

LISTA2_EX8 2014/02

Sep 30th, 2014
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.50 KB | None | 0 0
  1. //ALUNO: Luiz Henrique Forino
  2. //PROGRAMAÇÃO I, PROFESSOR PX
  3. //2014/02
  4.  
  5. Program EX8_LISTA2 ;
  6. var x,y,w,h: integer;
  7.  
  8.  Begin
  9.     writeln ('Entre com o valor de x: ');
  10.     readln (x);
  11.     writeln ('Entre com o valor de y: ');
  12.     readln (y);
  13.     writeln ('Entre com o valor de w: ');
  14.     readln (w);
  15.     writeln ('Entre com o valor de h: ');
  16.     readln (h);
  17.    
  18.         if (x >= 1) and (x <= w) and (y >= 1) and (y <= h) then
  19.             begin
  20.                 writeln ('Está dentro.');
  21.             end
  22.         else
  23.             writeln ('Está fora.');
  24.        
  25. End.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement