• admin@embedclogic.com

Program to find even or odd number

Program to find even or odd number

Prerequisite:

  • Familiar with if-else statement
  • even and odd number definition
  • Operator

Logic: Modulus of even number with 2 always be zero(n%2==0)