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

Integer Equality Checker

DEMO-C-32 • Programming in C

Browser-only practice

Problem Statement

Write a C program that reads two integers from standard input and determines whether they are equal or not. The program should output "EQUAL" if the two integers are the same, and "NOT EQUAL" if they are different.

This exercise helps you practice basic input/output operations and conditional statements in C programming.

Constraints

-1000 ≤ a, b ≤ 1000

Output Format

Print exactly one line containing either "EQUAL" (without quotes) if the integers are equal, or "NOT EQUAL" (without quotes) if they are different.

Sample Testcases

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

Sample #1
Public sample
5 5
EQUAL
Both integers are 5, so they are equal.
Sample #2
Public sample
10 20
NOT EQUAL
The integers 10 and 20 are different.

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