Home > Back-end >  Why do I function return value is always zero
Why do I function return value is always zero

Time:09-25

Why do I function return value is always 0

CodePudding user response:

I posted your picture, your code here,,,,

CodePudding user response:

Your input x is not a prime number? To see what is your input data?

In addition, suggest getting rid of the for loop in the I & lt; A judgment, because the judgment is redundant, because I=a - 1; I - I & lt; A is constant

CodePudding user response:

Int shushu (int a) the implementation of the part has been written in front of the main function, the main function declaration can not
  • Related