Determine the output whether number N is even or odd
Answers
Answered by
0
Answer:
Program to Check Even or Odd
Then, whether num is perfectly divisible by 2 or not is checked using the modulus % operator. If the number is perfectly divisible by 2 , test expression number%2 == 0 evaluates to 1 (true). This means the number is even.
Similar questions