#include<stdio.h>
int main()
{
int n,i,j,sum=0;
scanf("%d",&n);
for(i=1;i<=n;i++)
{for(j=1;j<i;j++)
{if(i%j==0)sum+=j;
}
if(i==sum)
{printf("%d its factors are ",i);
for(j=1;j<i;j++)
{if(i%j==0)printf("%d ",j);
}printf("\n");
}sum=0;
}
return 0;
}
标签:return,int,sum,11.25,printf,include,i% From: https://blog.51cto.com/u_15758636/5887426