Anyone who can tell me why the output is the result of the two?

CodePudding user response:
While (x - 2) here is equivalent to the while (x> 2)
And then obviously
CodePudding user response:
Because when x=2, while the return value is false not for circulation
CodePudding user response:
While whether x - 2 to 0, if 0 exit the loop, or other values are execution loop body ~
CodePudding user response: