find the sum and write the we there they are odd or even number
Answers
Answered by
0
Then, whether the number is perfectly divisible by 2 or not is checked using modulus operator. If the number is perfectly divisible by 2, test expression number%2 == 0 evaluates to 1 (true) and the number is even. However, if the test expression evaluates to 0 (false), the number is odd.
Similar questions