Describe ReverseAndAdd/정수민 here.


~cpp 

n=raw_input('숫자입력')

b=0

while True:
    m=n[::-1]
    if m==n:
        break
    print n
    print m
    print '-' * len(n)
    print int(n)+int(m)
    print '*' * len(n)
    k=int(n)+int(m)
    n=str(k)
    b=b+1


print b
print '번 더해서 회문'


   

-_-v


ReverseAndAdd

Retrieved from http://wiki.zeropage.org/wiki.php/ReverseAndAdd/정수민
last modified 2021-02-07 05:27:55