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
self explanatory look at the code
modulus