I can't figure out why only 1 test case is passing , rest are failing

Help me finding mistake in my code otherwise give me some testcases on which it is failing.
Here is my code

hello @robbiesingh.singh84
image
use mod property here as well.

(a-b)%mod=(a-b+mod)%mod;

i tried but its not working, can you make necessary changes in my code

1 Like

Thanks! I got it now