#C3043. Repeat a Word
Repeat a Word
Repeat a Word
You are given several datasets. Each dataset consists of an integer (n) and a word (w). For each dataset, output the word (w) repeated (n) times, separated by a single space. The input terminates with a dataset where (n = 0) (this terminal dataset should not be processed).
For example, given the dataset:
3 hello
2 world
5 test
0 end
The corresponding output should be:
hello hello hello
world world
test test test test test
inputFormat
Input is given from standard input (stdin). It consists of several lines, where each line contains an integer (n) and a word (w) separated by space. The sequence of inputs ends with a line where (n = 0). This final line must not be processed.
outputFormat
For each valid dataset, print a line to standard output (stdout) that contains the word (w) repeated (n) times. Adjacent copies of (w) should be separated by exactly one space.## sample
3 hello
2 world
5 test
0 end
hello hello hello
world world
test test test test test
</p>