Home > Back-end >  C language small white
C language small white

Time:06-06

Custom range and interval of primes, I don't understand why didn't the results...

CodePudding user response:

Every time before the inner loop, k s again

CodePudding user response:

After a 1 k by assignment, the k value is always 1, need to reset to zero in the first cycle

CodePudding user response:

refer to the second floor SuperDay response:
every time before the inner loop, k should be to buy 0

Oh oh, I see, thank you??

CodePudding user response:

reference datoulaile123 reply: 3/f
k is assignment 1 at a time, the subsequent k value is always 1, need in the first layer loop reset to 0

See, thank you very much ah,??????

CodePudding user response:

I hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10581430.html
I hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10768339.html
  • Related