解释一下这个程序 判断回文数
#include <stdio.h>int circle(int n,int d);
main()
{
int num[]={232,27,851},scale[]={2,10,16};
int i,j;
for(i=0;i<sizeof(num)/sizeof(num[0]);i++)
for(j=0;j<sizeof(scale)/sizeof(scale[0]);j++)
if(circle(num[i],scale[j]))
printf("%d(%d) is a circle number.\n",num[i],scale[j]);
else
printf("%d(%d) is not a circle number.\n",num[i],scale[j]);
getch();
}
int circle(int n,int d)
{
int m=n,s=0;
while(m!=0)
{
s=s*d+m%d; //这是什么意思?
m=m/d;
}
return s==n;
}