Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

Compile and Execute Pascal Online

Program S1;
Var x,y: real;
i,f: integer;
begin
f:=1;
for i:= 1 to 4 do
begin
writeln('Введите координаты точки:');
readln(x,y);
if i=1 then
s:=sqrt(x*x+y*y)
else if s<>sqrt(x*x+y*y) then f:=0;
end;
if f=1 then
wtiteln('Да, является ромбом') 
else writeln('Нет, не является ромбом');
end.
 

Advertisements
Loading...

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.