Advertisement
Guest User

Untitled

a guest
Feb 9th, 2017
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.57 KB | None | 0 0
  1. program Quarters;
  2. var x,y:real;
  3. begin
  4.  writeln ('Version 0.1.1');
  5.  writeln ('Добро пожаловать в определитель четверти! Введите значения х и у. Программа покажет, в какой четверти находится данная точка.');
  6.  write ('x=');
  7.  readln (x);
  8.  write ('y=');
  9.  readln (y);
  10.  if (x>0) and (y>0) then
  11.  writeln ('I quarter');
  12.  if (x<0) and (y>0) then
  13.  writeln ('II quarter');
  14.  if (x<0) and (y<0) then
  15.  writeln ('III quarter');
  16.  if (x>0) and (y<0) then
  17.  writeln ('IV quarter');
  18. end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement