Home > Back-end >  Output is more than X n primes, don't know why no output, want to ask how to change
Output is more than X n primes, don't know why no output, want to ask how to change

Time:10-03

CodePudding user response:

 while (count==n) 

Instead of
 while (count 
In this way can the interior of the while loop running

CodePudding user response:

Ah! Thank you why not can be changed to==
?

CodePudding user response:

The
Vennus reference 2 floor? Response:
! Thank you why not have changed to be==



You enter n non-zero n!=count (0), the while loop will never enter to so there is no output
  • Related