program CalculateFunction;
varx, y: Real;
beginfor x := -1 to 8 step 0.7 dobeginy := power(x, 3) - 3 * power(x, 2) + 9;writeln('For x = ', x:0:2, ', y = ', y:0:2);end;end.
program CalculateFunction;
var
x, y: Real;
begin
for x := -1 to 8 step 0.7 do
begin
y := power(x, 3) - 3 * power(x, 2) + 9;
writeln('For x = ', x:0:2, ', y = ', y:0:2);
end;
end.