• + 1 comment

    Just to note that % in C++ only gives you the dividend. It's not the modulus like in mathematics.