Advertisement
Guest User

Untitled

a guest
Mar 21st, 2019
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.56 KB | None | 0 0
  1. program pet;
  2. var x,y,c,z,a,b: Real;
  3. begin
  4.     writeln('введите А(x,y)');
  5.     readln(x,y);
  6.     writeln('введите B(c,z)');
  7.     readln(c,z);
  8.     a:=sqrt(sqr(x)+sqr(y));
  9.     b:=sqrt(sqr(c)+sqr(z));
  10.     if a<b then
  11.       begin
  12.         writeln('точка А ближе');
  13.       end
  14.       else
  15.       if a>b then
  16.         begin
  17.           writeln('точка B ближе');
  18.         end
  19.         else
  20.           begin
  21.             writeln('точки находятся на одинаковом расстоянии');
  22.           end;
  23.  end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement