program abc;
var x,y:real;
begin
readln(x);
if x <= 0 then
y:=x+4;
end;
if (x < 0) and (x <= 7.5) then
y:=x*x+3;
if x > 7.5 then
y:=x+((sqrt(x))/2);
writeln(y);
end.
Copyright © 2025 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
program abc;
var x,y:real;
begin
readln(x);
if x <= 0 then
begin
y:=x+4;
end;
if (x < 0) and (x <= 7.5) then
begin
y:=x*x+3;
end;
if x > 7.5 then
begin
y:=x+((sqrt(x))/2);
end;
writeln(y);
end.