Hit9 Blog Wiki Project Links Archives Resumé
Page: First UP Pre Next Back

C判断回文数

Fork me on GitHub

允许转载, 但转载请注明出处

Date:2012-09-15

int ishw(int n)
{
    int m=0,s=n;
    while(n) {
        m=n%10+m*10;
        n/=10;
    }
    return (m==s)?1:0;
}

Support:mkdwiki