程序没有错,但运行时屏幕没有输出结果是为什么
求助 程序没有错,但运行时屏幕没有输出结果是为什么
C语言 程序没有错,但运行时屏幕没有输出结果是为什么
运行时屏幕上只显示press any key to continue
------解决方案--------------------
C语言 程序没有错,但运行时屏幕没有输出结果是为什么
运行时屏幕上只显示press any key to continue
------解决方案--------------------
- C/C++ code
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); }
------解决方案--------------------
------解决方案--------------------
七楼和六楼是正解