RosettaCodeData/Task/Repeat-a-string/Delphi/repeat-a-string-1.delphi
2023-07-01 13:44:08 -04:00

9 lines
177 B
Text

function RepeatString(const s: string; count: cardinal): string;
var
i: Integer;
begin
for i := 1 to count do
Result := Result + s;
end;
Writeln(RepeatString('ha',5));