0
>>> x =3 >>>num=17 >>>print (num%x)
what's the answer
4 odpowiedzi
+ 1
You can run it,
2
+ 1
It's 2 as Modulo operator tells about the remainder.
num= x * quotient + remainder
17=( 3 * 5 )+2
+ 1
I don't know what's your intention behind this, but this seems more to be our test than your query. If it is, then avoid it...
Meanwhile, answer is 2