问题:
源代码:
#include<stdio.h>
int main()
{
long mul,number,k,a,b;
for(number=0;number<100000;number++)
{
for(mul=number,k=1;(mul/=10)>0;k*=10);
a=k*10;
mul=0;
b=10;
while(k>0)
{
mul=(mul+(number%(k*10))*(number%b-number%(b/10)))%a;
k/=10;
b*=10;
}
if(number==mul)
printf("%ld ",number);
printf("\n");
}
标签:10,number%,22,number,mul,打卡 From: https://www.cnblogs.com/ykznlxx/p/17398494.html