complete mod-g(x) addition and multiplication tables code example Example: modulo subtraction ((a%c - b%c) % c + c) % c