How is -11%4 = -4 in the first question since any number %7 should lie in the range [0,6] ?
-11%7 should be 3 according to me. Please explain
How is -11%4 = -4 in the first question since any number %7 should lie in the range [0,6] ?
-11%7 should be 3 according to me. Please explain
It would be 3 only as (-4+7)%7=3. Using modulus property
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.