var x,y:real;
begin
write('Введите x: '); readln(x);
if x <= 0 then y := 1/(sqr(x)+1)
else if (x > 0) and (x <= 1) then y := sqr(x)/2+x
else y := ln(x+1);
write(y:0:2);
end.
var x,y:real;
begin
write('Введите x: '); readln(x);
if x <= 0 then y := 1/(sqr(x)+1)
else if (x > 0) and (x <= 1) then y := sqr(x)/2+x
else y := ln(x+1);
write(y:0:2);
end.