Write a program to take x and y as input and output the string x, repeated y times. Sample Input hi 3 Sample Output hih | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Write a program to take x and y as input and output the string x, repeated y times. Sample Input hi 3 Sample Output hih

How to solve it

30th Dec 2022, 11:26 AM
X Gamerz
X Gamerz - avatar
1 Answer
+ 4
1. Read the lesson again. Pay attention to string repetition with "*" 2. If you need more help, please show your code attempt. 3. Please do not paste the task description in the title section – it gets cut off and will be incomplete.
30th Dec 2022, 12:00 PM
Lisa
Lisa - avatar