Advertisement
FanaticExplorer

ol_3_6

Feb 1st, 2022
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.30 KB | None | 0 0
  1. var x1,y1,x2,y2, x3,y3,x4,y4:Longint;
  2. begin
  3.     readln(x1,y1,x2,y2);
  4.     if x1>=x2 then
  5.     begin
  6.         x3:=x2;
  7.         x4:=x1;
  8.     end
  9.     else begin
  10.         x3:=x1;
  11.         x4:=x2;
  12.     end;
  13.     if y1>=y2 then
  14.     begin
  15.         y3:=y1;
  16.         y4:=y2;
  17.     end
  18.     else begin
  19.         y3:=y2;
  20.         y4:=y1;
  21.     end;
  22.     writeln(x3, ' ', y3, ' ', x4, ' ', y4);
  23. end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement