#include <stdio.h>
int main()
{
int n,m,i,j,sum=0,count=0;
scanf("%d%d",&m,&n);
for(i=m;i<=n;i++)
{for(j=1;j<i;j++)
{if(i%j==0){sum+=j;
}
}
if(sum==i){printf("%d ",i);count++;
}sum=0;
}
if(count==0)printf("No");
return 0;
}
标签:count,return,int,11.14,printf,include,sum From: https://blog.51cto.com/u_15758636/5849287