Repeat After Me (Baby Steps)

Read a word and a number n. Print the word n times, each on its own line.

Input: A word, then an integer n (1 to 50).

Output: n lines, each the word.

Difficulty: Easy. Write your answer in the browser editor, run the examples, then submit it against hidden tests. Python and JavaScript are free; other languages are part of licode Club.

Hint

  • Use a for loop that runs n times.

More Baby Steps practice