RosettaCodeData/Task/Repeat-a-string/Euphoria/repeat-a-string-2.euphoria

5 lines
209 B
Plaintext

-- Here is an alternative method for "Repeat a string"
include std/sequence.e
printf(1,"Here is the repeated string: %s\n", {repeat_pattern("ha",5)})
printf(1,"Here is another: %s\n", {repeat_pattern("*",5)})