当break后,是否还执行后面的if语句?
#include<stdio.h>#include<math.h>
int main(){
int i,j;
printf("100以内的素数有:\n");
for(i=2;i<100;i++){
for(j=2;j<sqrt(i);j++){
if(i%j==0){
break;
}
}
if(j>sqrt(i)){
printf("%d,\t",i);
}
}
}
2018-04-09 22:27
2018-04-10 05:36
2018-04-10 15:51
2018-04-10 19:51
2018-04-11 08:57