Previous Next
0 / 13
Module DEMO-32-56DEMO-C-32

Even or Odd Checker

DEMO-C-32 • Programming in C

Browser-only practice

Problem Statement

Write a C program that reads an integer from the user and determines whether it is even or odd.

An integer is even if it is divisible by 2 (i.e., the remainder when divided by 2 is zero). Otherwise, it is odd.

This simple exercise will help you practice using the modulus operator (%) along with if statements to make decisions based on numerical properties.

Constraints

-1000 ≤ number ≤ 1000

Input Format

A single integer on a line by itself.

Output Format

Print either EVEN or ODD in uppercase letters followed by a newline character.

Sample Testcases

Submit runs every public testcase in this browser. Results and code never leave this device.

Sample #1
Public sample
4
EVEN
4 is divisible by 2, so it's even.

Web terminal

C, C++, Java, and Python run locally in a browser VM. No worker or visualizer is used.

Saved in this browser
Editor settings