#K80607. Repeat String Concatenation
Repeat String Concatenation
Repeat String Concatenation
Given a string ( s ) and an integer ( n ), your task is to concatenate ( s ) to itself ( n ) times and output the resulting string. This problem tests your ability to handle basic string operations and input/output operations.
For example, if ( s = \texttt{abc} ) and ( n = 3 ), then the expected output is ( \texttt{abcabcabc} ).
inputFormat
The input is provided via standard input (stdin) and consists of two lines. The first line contains the string ( s ), and the second line contains an integer ( n ), which represents the number of times ( s ) should be repeated.
outputFormat
Output the concatenated string obtained by repeating ( s ) exactly ( n ) times. The result should be printed to standard output (stdout).## sample
abc
3
abcabcabc