var x,y:real;
begin
readln(x);
if x <=-1 then
y:=-1/sqr(x)
else if ((x>-1) and (x<=2)) then y:=sqr(x)
else if x > 2 then y:=-4;
writeln(y);
end;
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
var x,y:real;
begin
readln(x);
if x <=-1 then
y:=-1/sqr(x)
else if ((x>-1) and (x<=2)) then y:=sqr(x)
else if x > 2 then y:=-4;
writeln(y);
end;