完善程序:程序用于求100~200之间的全部素数。n的作用是累计素数的个数,该程序要求控制每行输出10个数据。 #include "math.h" void main() {int m,k,i,n=0 ; for (m= 101 ;m<=200;m=m+2) {if ( n%10==0 ) printf("\n"); k=sqrt(m); for (i=2;i<=k;i++) if (m%i==0) ; if (i>=k+1) {printf("%d ",m); n=n+1;} } }
拍照语音搜题,微信中搜索"皮皮学"使用
参考答案:
参考解析:
知识点:
皮皮学刷刷变学霸
举一反三
【简答题】—It's reported that some capsules(胶囊) are really bad for our health. —Sounds terrible. Hopefully the problem ___ as soon as possible A is solved B. has solved C. was solved D. wi...