program ValueY;
varx, y: real;
beginwrite('Enter the value of x: ');readln(x);
if x < 3 theny := x * x - 3else if x > 3 theny := abs(x) - 5elsey := 0;
writeln('The value of y is: ', y);end.
program ValueY;
var
x, y: real;
begin
write('Enter the value of x: ');
readln(x);
if x < 3 then
y := x * x - 3
else if x > 3 then
y := abs(x) - 5
else
y := 0;
writeln('The value of y is: ', y);
end.