var
i
,OldVal: Integer;
NewVal: Extended;
Str: String;
begin
OldVal := EdtInput.Value;
for i := 1 to OldVal do
begin
Str:='';
NewVal := i / 3;
if round(NewVal) = NewVal then
Str:= 'Fizz';
NewVal:= i / 5;
if round(NewVal) = NewVal then
Str:= Str+'Buzz';
if Str = '' then
Str:= IntToStr(i);
MmOutput.Lines.Add(Str); end;
end;