(C# Questhion) Why is 19 % 4 = 3? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1
17th Feb 2018, 1:38 PM
INIGUMA
INIGUMA - avatar
4 Answers
+ 4
Since the value of y is 2, x + y equals to 19. Then using the modulo operator gives you remainder of 19/4, which is 3.
17th Feb 2018, 1:44 PM
Harsh
Harsh - avatar
+ 9
19/4 =4 remainder 3 So, 19%4=3
17th Feb 2018, 1:46 PM
Muhd Khairul Amirin
Muhd Khairul Amirin - avatar
+ 3
If you divide 19 by 4, remainder is 3 (19=4*4+3), it's saying that .Here % (called ''Modulus'' operator) is used to express this operation.
17th Feb 2018, 1:43 PM
📈SmileGoodHope📈
📈SmileGoodHope📈 - avatar
+ 1
Thank you guys! Now I've understood how it works.
17th Feb 2018, 1:45 PM
INIGUMA
INIGUMA - avatar