Given an integer N, determine whether it is even or odd.
Input: A single integer N.
Output: Print "Even" if N is divisible by 2. Otherwise, print "Odd".
Example: Input: 8
Output: Even
// code challenge
~3 min
Determine whether a given integer is even or odd.
Given an integer N, determine whether it is even or odd.
Input: A single integer N.
Output: Print "Even" if N is divisible by 2. Otherwise, print "Odd".
Example: Input: 8
Output: Even
Language: · Judge0
// sample tests
stdin "8" → stdout "Even"stdin "7" → stdout "Odd"Sign in to run and submit.
⌘/Ctrl+Enter run · ⌘/Ctrl+Shift+Enter submit · Esc exits fullscreen
Run your code to see test results here.