the newmove should be 21
newmove=(21-x1) % (k1 + 1) + x1;
(21-12) % (12 + 1) + 12
( 9 % 13 ) + 12
9 + 12
21
solved Modulus in language C [closed]
the newmove should be 21
newmove=(21-x1) % (k1 + 1) + x1;
(21-12) % (12 + 1) + 12
( 9 % 13 ) + 12
9 + 12
21
solved Modulus in language C [closed]