+ 4
Simple question
print(5 % 2) gives u 1 which is the remainder ok i understand that but how did print(2 % 5) gives u 2
3 odpowiedzi
+ 14
5 cannot divide 2 at all so it just returns it untouched. (it's the remainder since it gets divided 0 times)
Tip:
a<b
a%b=a
a=b
a%b=0
+ 5
gotcha thank you