0
/ 1.0
Write a function called repeat(s, n)
with two parameters, a String s
and an int n
. The routine should return a string with s
repated n
...
Write a function called repeat(s, n)
with two parameters, a String s
and an int n
. The routine should return a string with s
repated n
times.
Examples:
repeat("x",3) -> "xxx"
Your feedback will appear here when you check your answer.