RosettaCodeData/Task/Repeat-a-string/AutoHotkey/repeat-a-string.ahk

9 lines
103 B
AutoHotkey

MsgBox % Repeat("ha",5)
Repeat(String,Times)
{
Loop, %Times%
Output .= String
Return Output
}