No older revisions available
No older revisions available
~cpp def main(): number = str(input('입력: ')) reverse = '' for n in range(1, 100): if number != reverse: reverse = number[::-1] nnumber = int(number) rnumber = int(reverse) nnumber = nnumber + rnumber number = str(nnumber) reverse = number[::-1] print number else: return 0 if __name__ == '__main__': main()