Program n_1;
var x,y:real;
begin
read(x);
if x>0 then y:=-2*x*x+3
else y:=-2*x*x+x+1;
writeln(y:0:5);
end.
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Program n_1;
var x,y:real;
begin
read(x);
if x>0 then y:=-2*x*x+3
else y:=-2*x*x+x+1;
writeln(y:0:5);
end.