Time:06-10
CodePudding user response:
run out, who also don't say you want to do, you know what's the problem with
Quote: refer to 1st floor qq_45798109 response: run out, who also don't say you want to do, you know what's the problem with Output all prime Numbers within 100, full five prime line breaks
Quote: refer to the second floor qq_45744248 response: Quote: refer to 1st floor qq_45798109 response: run out, who also don't say you want to do, you know what's the problem with Output all prime Numbers within 100, full five prime line breaks So the question is what? Next to a previous post, the CSDN BBS newbie guide
# include & lt; stdio.h> #include Bool isPrime (int n) {If (n & lt; 2) return 0; For (int I=2; i <=(int) SQRT (n); + + I) If I (n %==0) return false; return true; } Int main () {int count=0; For (int I=2; i <100; + + I) {{if (isPrime (I)) Printf (" % d ", I); count++; If (count==5) {printf("\n"); Count=0; } } } return 0; }
Page link:https//www.codepudding.com/Backend/112933.html