How to check if my integer can be divided by 3 as below:
for(int i=0; i<24; i++){ //here, how to check if \"i\" can be divided by 3 completely(e.g. 3,
Use the MOD operator
for(int i=0; i<24; i++){ if( i%3 == 0 ) // It is divisible by 3 }