0

Explication please

9%5%5 = 4

17th Jun 2023, 12:07 PM
Eliakim Ramos
Eliakim Ramos - avatar
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
17th Jun 2023, 12:16 PM
Sakshi [Offline 🙃]
Sakshi [Offline 🙃] - avatar
+ 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
17th Jun 2023, 12:13 PM
Brian
Brian - avatar
+ 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...
17th Jun 2023, 1:42 PM
MMK
MMK - avatar
+ 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.
18th Jun 2023, 3:38 PM
Jeremy Ed
Jeremy Ed - avatar
0
9%5 is 4 5%5 is 0 So, How is It? Help me to understand this.
17th Jun 2023, 12:08 PM
Eliakim Ramos
Eliakim Ramos - avatar