C Program to Check Even or Odd

 #include<stdio.h>

void main()

{

    int n;

    printf("Enter number: ");

    scanf("%d",&n);


    if(n%2 == 0)

    printf("Even");

    else

    printf("Odd");

}

Comments

Popular posts from this blog

Single Program Using All Automatic String Functions

C program for subtraction of two matrices (2D Arrays)

C program for Multiplication of Two matrices