program CalculateY;
varn, i, y: integer;
beginwrite('Enter a natural number: ');readln(n);
y := 1;
for i := 1 to n dobeginy := y (2i - 1);end;
writeln('The result is: ', y);
end.
program CalculateY;
var
n, i, y: integer;
begin
write('Enter a natural number: ');
readln(n);
y := 1;
for i := 1 to n do
begin
y := y (2i - 1);
end;
writeln('The result is: ', y);
end.