Repeat String
Easy📝 Description
Repeat a string n times
Input Format
String and integer n
Output Format
Repeated string
Constraints
1 ≤ string.length ≤ 100 0 ≤ n ≤ 100
🔍 Sample Input
"hi"
3
✅ Sample Output
"hihihi"
Code Editor
Please login to run and submit code.
Results
Suggested Solution
Shortcuts: Ctrl+Enter to submit, Ctrl+Shift+R to run