program Calculate;varX: integer;Y: real;
beginwrite('Введите X: ');readln(X);
if X > 0 thenY := sqrt(X)elseY := abs(X);
writeln('Y = ', Y);end.
program Calculate;
var
X: integer;
Y: real;
begin
write('Введите X: ');
readln(X);
if X > 0 then
Y := sqrt(X)
else
Y := abs(X);
writeln('Y = ', Y);
end.