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. You can assume that n is greater than zero.
Examples:
repeat("x",3) -> "xxx"
repeat("ab",2) -> "abab"
Your feedback will appear here when you check your answer.