A C Program to find if the entered number is even or odd.


#include<stdio.h>
#include<conio.h>
void main()
{
int n;

printf("Enter value of n:");
scanf("%d",&n);
if(n%2==o)
   {
    printf("%d is Even Number",n);
    }
    else
          {
           printf("%d is Odd Number");
           }
getch();
}

Comments