Modulus Symbol In C++ Code Example


Example: Mod in c++

if (iNum % 2 == 0)  { cout << num << " is even "; } // % is used to mod numbers

Comments

Popular posts from this blog

Converting A String To Int In Groovy

"Cannot Create Cache Directory /home//.composer/cache/repo/https---packagist.org/, Or Directory Is Not Writable. Proceeding Without Cache"

Android SDK Location Should Not Contain Whitespace, As This Cause Problems With NDK Tools