问题
填空题
方法f2702(int n)返回2~n之间的所有质数的个数。
int f2702(int n)
int i,j,count=0;
for(i=2;i<=n;i++)
for(j=2;j<i;j++)
if(i%j==0)______
if(j==i)______;
return count;
答案
参考答案:break;
count++;
方法f2702(int n)返回2~n之间的所有质数的个数。
int f2702(int n)
int i,j,count=0;
for(i=2;i<=n;i++)
for(j=2;j<i;j++)
if(i%j==0)______
if(j==i)______;
return count;
参考答案:break;
count++;