+ 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 ❤
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)
+ 3
@iBrandon
You also can check my "Modulus Calculator", You can easily calculate any modulus ☺
https://code.sololearn.com/WgZh4q0yXu8K/?ref=app
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.
0
@Hasty Rei omg ty I have been trying to find a way to solve modulus questions 😂😂