0
Explication please
9%5%5 = 4
5 Answers
+ 4
Eliakim Ramos this is a modulus operator (%) it means we get the remainder value
9%5 means you divide 9 by 5, so if you get the remainder value 4 because (9-5)
Now, 5%5 means also simple because 5 is completely divided by 5 so remainder is 0
Hope you understand.
If you don't understand then you can see this post also
https://www.sololearn.com/Discuss/735704/?ref=app
Hope it's helpful to you
+ 6
Both operators are the same, so they have the same precedence, therefore they are evaluated from left to right.
(9%5)%5
(9%5) = 4
(4)%5 = 4
+ 1
9/5 = 1.4
9Ă·5 =1.4
9%5=4
5/5=1.0
5Ă·5=1.0
5%5=0
hope you understand...
+ 1
The modulus performs 2 operations. Think of it like this: 7 % 5 will become 7/5 then return the remainder. So 7%5 = 2.
0
9%5 is 4
5%5 is 0
So, How is It?
Help me to understand this.