U E D R , A S I H C RSS

Reverse And Add/정수민

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



Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2009-05-27 07:09:19
Processing time 0.0074 sec