- 1
Can anyone explain Modulus is arithmetic operators?
Can anyone explain Modulus is arithmetic operators?
2 Answers
+ 3
It divides the two numbers, then returns the remainder.
5 % 2 = 1. Why?
5 / 2 equals 2, and the remainder is 1, therefore 5 % 2 = 1
This question is describen in all courses, and if you would use the search bar, you would see how often this question is asked. Please, try to follow these guidelines:
https://www.sololearn.com/discuss/1316935/?ref=app
0
Oh kool I get it now. Thanks a million Airree