新手求教。
#include<stdio.h>void main()
{int i,j,counter=0,sum;
for(i=1;i<=100;i++)
{ for(j=1,sum=0;j<=i-1;j++);
{if(0 ==i%j)
sum+=j;
}
if(sum==i)
{printf("%d is a wanshu\n",i);
counter++;
}
}
printf("There are %d wanshu(s) between 1and100\n",counter);
}
这个求完数的程序哪里有问题啊?