Repeat String

Easy · rating 850 · Strings

The first line contains a string s (no spaces). The second line contains an integer k. Print s repeated k times, with no separators.

Constraints: 1 ≤ |s| ≤ 100, 1 ≤ k ≤ 100

Related problems

Open Repeat String in Code Arena →