+ 1
Write a program to take x and y as input and output the string x, repeated y times.
Please tell me the answer and also explain it.
7 Answers
+ 2
here is an example without any exception handling:
x = input()
y = int(input())
print(x * y)
+ 2
Thanks a lot , I would appreciate that â€đ
+ 1
in what programming language?
+ 1
+ 1
Why we didn't use int with x?
+ 1
because you said it's a string.
+ 1
Well Forever Knight, you should have tried towards this problem a little bit, but you didn't.
We won't give you direct answers here (without your try, but unfortunately someone gave)
Please refer:
https://www.sololearn.com/discuss/1316935/?ref=app