function calculateY(x: integer): integer;beginif x > 0 thencalculateY := 3 xelsecalculateY := x x;end;
function calculateY(x: integer): integer;
begin
if x > 0 then
calculateY := 3 x
else
calculateY := x x;
end;