What is modulus | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 5

What is modulus

15th Nov 2016, 1:44 PM
S.M.Ali Zaidi
S.M.Ali Zaidi - avatar
10 Answers
+ 17
modulus is an operator which gives the remainder when two no are divided. for example:17%3 as 17 is not perfectly divisible by 3 there is a remainder left. 5*3=15 so modulus of 17%3 is 2 i.e (17-(5*3))... ✌✌
15th Nov 2016, 2:44 PM
sanket jain
sanket jain - avatar
+ 1
thanks
19th Nov 2016, 3:32 AM
S.M.Ali Zaidi
S.M.Ali Zaidi - avatar
+ 1
what is modulus of 20%3?. the result of multiplying 3 were approaching 20 and less than 20. 6*3=18. so 20-18=2. The answer is true.
11th Jan 2017, 2:55 AM
Penko Delikasi
Penko Delikasi - avatar
+ 1
it gives remainder after performing operation...
16th Feb 2017, 6:34 AM
Monali Chavare
Monali Chavare - avatar
0
2
25th Nov 2016, 5:04 AM
முதலாம் சிலம்பு சோழன்
முதலாம் சிலம்பு சோழன் - avatar
0
In C++ Modulus is Operator Perform a Remainder operation. Which gives remainder value
1st Feb 2017, 9:44 AM
Mangesh Sonawane
Mangesh Sonawane - avatar
0
2
13th Feb 2017, 6:10 AM
amol saraf
0
2
13th Feb 2017, 7:33 AM
amol saraf
0
Well im kinda understand some of it. But still something, how about 50 - 12 % 50?
21st Aug 2022, 9:28 AM
Nett
Nett - avatar
- 1
remainder operator!
26th Nov 2016, 7:56 AM
iJean
iJean - avatar