var
x, y : real;
begin
readln(x);
if x > 2 then
y := x*x + 4*x - 10
else if x = 2 then
y := 3 * x*x - 16
else if x < 2 then
y := 6 * x + 3;
writeln(y:5:2);
end.
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
var
x, y : real;
begin
readln(x);
if x > 2 then
y := x*x + 4*x - 10
else if x = 2 then
y := 3 * x*x - 16
else if x < 2 then
y := 6 * x + 3;
writeln(y:5:2);
end.