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; }
O_o
Can you explain in your own words what modulo is?
Soma
“Salem Was Wrong!” -- Pedant Necromancer
“Four isn't random!” -- Gibbering Mouther
self explanatory look at the code
modulus
Last edited by userxbw; 12-01-2017 at 11:52 AM.