+ 2
Modulo Issue.
What happens when the number in front of the modulo is higher than the number behind it. If i put it in a program and compile it. It prints the number in the front of the modulo. But why?
5 odpowiedzi
+ 6
modulo should give you the remainder.
for example, 5%2 would be 1.
+ 2
And 2%5 is 2.
+ 1
Thank you i got this question in a challenge
+ 1
Modulo is like Division but you get the rest instead of the real Number.
For example:
x = 6%5
the output x is 1, not 1.2 because it is the rest
0
what is modulo how it work