I can comprehend why any number smaller that the number the other side of modulo equals the smaller number. How does this work?
Code:int main() { int mod = 2; mod %= 12; cout << ": " << mod << endl; return 0; }
I can comprehend why any number smaller that the number the other side of modulo equals the smaller number. How does this work?
Code:int main() { int mod = 2; mod %= 12; cout << ": " << mod << endl; return 0; }