Program FindMaxNumber;
varnumber, maxNumber, numberPosition: integer;
beginWrite('Enter a number: ');ReadLn(number);
maxNumber := number;numberPosition := 1;
repeatWrite('Enter a number: ');ReadLn(number);
until number = 0;
Writeln('The maximum number is ', maxNumber);Writeln('Its position in the list is ', numberPosition);end.
Program FindMaxNumber;
var
number, maxNumber, numberPosition: integer;
begin
Write('Enter a number: ');
ReadLn(number);
maxNumber := number;
numberPosition := 1;
repeat
if number > maxNumber thenWrite('Enter a number: ');
ReadLn(number);
begin
maxNumber := number;
numberPosition := numberPosition + 1;
end
else
numberPosition := numberPosition + 1;
until number = 0;
Writeln('The maximum number is ', maxNumber);
Writeln('Its position in the list is ', numberPosition);
end.