if ( i%2= =0 )
what does this mean in a java program
Answers
Answered by
1
Answer:
I hope my answer is correct. Please follow
Explanation:
The % is the modulus operator, and it’s common in many programming languages. Not just Java. It determines what the remainder is when dividing between two numbers. So as Jan mentioned, in this example, it’s checking for even numbers, because if i divided by 2 has a remainder of 0, it’s even.
Similar questions