Loops - Repeat a char n times

In this challenge you will receive a number, n, and a string, str.

You should run a loop n times and concatenate the string to the result variable each time.

For example, if n is 3 and str is "a", the result string should be "aaa". If n is 5 and str is "b", the result string should be "bbbbb".

Loading...
Loading...
Loading...

© 2024 - ®Mewters