0

How is this answer 2?

X = 3 Nums = 17 Y = ( nums % x)

11th Jan 2022, 9:25 PM
Chase Fenter
2 Answers
+ 5
The modulo operator returns the remainder of a division. 17 / 3 is 5 with a remainder of 2, because 5 * 3 is 15 and 17 - 15 = 2
11th Jan 2022, 9:33 PM
Mario Kampmeier
Mario Kampmeier - avatar
0
Modulo Sign gives remainder and // gives quotient
13th Jan 2022, 3:14 PM
Hellock