求问结果为何为=0.
#include<stdio.h>void main()
{
int n=2;
int result=0;
int sum=0;
while(n<=1000)
{
int a=1;
while(a<n)
{
if(n%a==0)
sum=sum+a;
else ;
a++;
}
if(sum==n)
{printf("%d+",sum);
result=result+sum;}
else ;
n++;
}
printf("=%d",result);
}