Why * is used? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
29th May 2018, 4:51 PM
Karthik
Karthik - avatar
2 Answers
+ 7
here * is use for multiplication work.. is it your question?
29th May 2018, 5:02 PM
Scooby
Scooby - avatar
+ 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
29th May 2018, 6:17 PM
ifl
ifl - avatar