RosettaCodeData/Task/Repeat-a-string/Delphi/repeat-a-string-1.pas
2024-10-16 18:07:41 -07:00

9 lines
177 B
ObjectPascal

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));