标签:io sp for bs c nbsp print br include
#include<stdio.h>
#include<math.h>
main()
{
unsigned int i,a,m;
for(i=2;i<1000;i++)
{
m=0;
for(a=1;a<i;a++)
{
if(i%a==0)
m=m+a;
}
if(m==i)
{
printf("\n%5d\n",i);
for(a=1;a<i;a++)
{
if(i%a==0)
printf("%5d",a);
}
}
}
printf("\n");
}
标签:io sp for bs c nbsp print br include
原文地址:http://www.cnblogs.com/Forever-B/p/4107282.html