求助 程序没有错,但运行时屏幕没有输出结果是为什么C语言 程序没有错,但运行时屏幕没有输出结果是为什么运行时屏幕上只显示press any key to continue[解决办法]
int a,n,s;for(a=1;a<=100;a++){ for(s=0,n=1;n<a;n++) { if(a%n==0) s=s+n; } if(s==a) printf("%d\n",a);}[解决办法]