一个自然数把各位数倒过来仍是本身,这个数为回文数,如606 ,90509求从1到1000000有多少回文数?怎么求?

问题描述:

一个自然数把各位数倒过来仍是本身,这个数为回文数,如606 ,90509求从1到1000000有多少回文数?怎么求?

在自然数中,最小的回文数是0,其次是1,2,3,4,5,6,7,8,9,11,22,33,44,55,66,77,88,99,101,111,121,131,141,151,161,171,181,191,202,212,222,232,242,252,262,272,282,292,303,313,323,333,343,353,363,373,383,393,40...