Modulus ka part samajh nahi aaraha

Sir wo modulus operater samajh nahi aaya…
Var a = 5;
Var b = 6;
Var z %= b;
How did the remainder comes 6??