U E D R , A S I H C RSS

Reverse And Add/최경현

~cpp 
def main():
    a=str(raw_input('input Number:'))
    while True:
        a = int(a)+int(a[::-1])
        b=0
        b=str(a)
        if int(b)==int(b[::-1]) :
            print a
            break
        else : a=str(a)
    

if __name__ == '__main__' :
    main()
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2009-05-27 07:09:19
Processing time 0.0257 sec