+ 2
I'm very confused about the like 7% (7//5) thing. Not the exact problem but like how to do it exactly and correctly.
4 Antworten
+ 7
Do the part in the parenthesis first, so 7 // 5 is 7 / 5 floored, which is 1.
Then 7 % 1 means the remainder of 7 / 1, which is 0.
So, 7 % (7 // 5) is 0.
+ 5
+ 5
Please tag the topic well
+ 2
Which language?