RosettaCodeData/Task/Repeat-a-string/Delphi/repeat-a-string-1.delphi

10 lines
177 B
Text
Raw Permalink Normal View History

2013-04-10 23:57:08 -07:00
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));