~cpp
k = input('몇개입력할거니?')
n = [input('입력해보아') for i in range(k)]
for i in range(k):
for j in range(1000):
s=str(n[i])
s=s[::-1]
if n[i]==int(s):
print j,n[i]
break
n[i]=n[i]+int(s)
Retrieved from http://wiki.zeropage.org/wiki.php/ReverseAndAdd/민경 last modified 2021-02-07 05:27:54