← Back to User Input
Question 256
Even or Odd Checker
Even or Odd Checker
Read one integer from input and print Even if it is evenly divisible by 2, or Odd if it is not. Use the remainder operator (%) to check divisibility: a number is even when the remainder after dividing by 2 is 0. For an input of 4 the program prints Even; for 7 it prints Odd.
Expected Output:
Even= newline. The output ends with a newline — print one after the last line.
Hints2 available
Sign in to use hintsTopics:
User Input
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Shift+Alt+F to format · Ctrl+Space to expand shortcuts (cw, cr, fori)
Your Output
Run your code to see the output here...
Test Cases
Run your code to see test case results.