New course! Every coder should learn Generative AI!
Try a free lesson0
Why * is used?
2 Answers
+ 7
here * is use for multiplication work.. is it your question?
+ 1
BTW, the code is wrong, the test should be instead:
if((n/2)*2==n)
Then, if n is odd, n/2 is rounded down to the integer, so (n/2)*2 is n-1