Step 1: Solve inside the innermost brackets:
29 % 6 → 29 divided by 6 gives 4 with a remainder of 5.
So, 29 % 6 = 5.13 % 4 → 13 divided by 4 gives 3 with a remainder of 1.
So, 13 % 4 = 1.
Step 2: Multiply the two results:
5 * 1 = 5Step 3: Now take modulo 5:
5 % 5 → 5 divided by 5 leaves a remainder of 0.
Final Answer:
✅ So, when you run the code, it will print 0.


0 Comments:
Post a Comment