标签:bsp char stdio.h std argv main 进阶 scanf col
#include<stdio.h> int main(int argc,char *argv[]) { int i,j,n,m; scanf("%d%*c%d",&n,&m); for(i=n;i<=m;i++) { int sum=0; for(j=1;j<=i/2;j++){ if(i%j==0) sum+=j; } if(sum==i) printf("%5d",i); } return 0; }
标签:bsp char stdio.h std argv main 进阶 scanf col
原文地址:https://www.cnblogs.com/chenlong991223/p/10117455.html