+ 11

Can any one tell me a method to easily calculate modulus ?!

Can any one tell me a method to easily calculate modulus .. Because i can't calculate any modulus quiz !! .. And many thanks to any one answer my question ❤

17th Jan 2017, 12:55 PM
Hassan Amr
Hassan Amr - avatar
4 ответов
+ 10
Gosh. You should have asked earlier. It's a waste to lose XP on these questions. Modulus represents the remainder of a division. E.g. 5/2 is 2, with 1 as the remainder, hence 5%2 is 1. Similarly, 9%4 is 1. (whereas 9/4 is 2, remainder 1) 9%5 is 4. (whereas 9/5 is 1, remainder 4)
17th Jan 2017, 1:06 PM
Hatsy Rei
Hatsy Rei - avatar
+ 3
@iBrandon You also can check my "Modulus Calculator", You can easily calculate any modulus ☺ https://code.sololearn.com/WgZh4q0yXu8K/?ref=app
14th Apr 2017, 9:12 PM
Hassan Amr
Hassan Amr - avatar
0
simply output of a modulus (%) is remainder. so just look for remainder of the given division which is the actual answer. eg: 7%3 will b 1. but 6%3 will be zero While we know 7/3 is 2.33 and 6/3 is 2 where / is normal division which returns quotient as answer. it means %(modulus operator) returns(gives) only remainder as answer.
1st Feb 2017, 10:10 AM
Shiva Charan K
Shiva Charan K - avatar
0
@Hasty Rei omg ty I have been trying to find a way to solve modulus questions 😂😂
14th Apr 2017, 9:05 PM
iBrandon
iBrandon - avatar