C语言输出100以内的素数

日期:2016-10-11 06:08:53 人气:1

C语言输出100以内的素数

conut=0;//count每次循环都需要赋初值 for(j=1;j<=i;j++) { if(i%j==0) count++; } if(count==2)//把它拿出来就好了 printf("%d ",i);
    A+
热门评论