
Last chance! 50% off unlimited learning
Sale ends in
Takes a character and creates a string that is the character repeated len
times.
makeNstr(char, len)
A string that is char
repeated len
times.
character to be repeated
number of times to repeat char
.
Charles Dupont
makeNstr(" ", 5)
# \dontshow{
if(makeNstr(" ", 5) != " ") stop("makeNstr failed test")
# }
Run the code above in your browser using DataLab