- 1

Can anyone explain Modulus is arithmetic operators?

Can anyone explain Modulus is arithmetic operators?

21st Jul 2019, 9:15 AM
biodun
2 Respuestas
+ 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
21st Jul 2019, 9:25 AM
Airree
Airree - avatar
0
Oh kool I get it now. Thanks a million Airree
21st Jul 2019, 9:29 AM
biodun