标签:std asto its printf fast turn class ++ scanf
1 #include<stdio.h> 2 int main() 3 { 4 int n,i,j,p; 5 scanf("%d",&n); 6 for(i=1;i<=n;i++){ 7 int sum=0,fs[i],N=0; 8 for(j=1;j<i;j++){ 9 if(i%j==0){ 10 sum=sum+j; 11 fs[N]=j; 12 N++; 13 } 14 } 15 if(i==sum){ 16 printf("%d its fastors are",i); 17 for(p=0;p<N;p++) 18 printf(" %d",fs[p]); 19 printf("\n"); 20 } 21 } 22 23 return 0; 24 }
标签:std asto its printf fast turn class ++ scanf
原文地址:https://www.cnblogs.com/stelayuri/p/12203788.html