Even or Odd Checker in C Language
Even or Odd Checker in C Language
Introduction
Determining whether a number is even or odd is a basic programming exercise. This program uses the modulus operator to check.
Program
Explanation
-
num % 2 == 0
: Checks if the number is divisible by 2. -
If true, the number is even; otherwise, it's odd.
Comments
Post a Comment