+ 1
How?
20//6 output: 3
4 Antworten
+ 4
or in other words: x // y tells you how often y fits into x as a whole ! In your example 6 fits at maximum 3 times into twenty because 3 times 6 = 18 <=20 but 4 times 6 would be 24 > 20... so 4 times wouldn't fit anymore....
+ 7
Just manually divide the first number by second one and ignore the decimals.
20 // 6 = 3.333 = 3
30 // 6 = 5.000 = 5
40 // 6 = 6.666 = 6
even 9.9999 = 9
+ 4
The // operator divides the first number by the second and rounds down. Therefore, 20 // 6 is 3.333333 rounded down, or 3.
+ 1
could you give neat answer?