Program to check Even or Odd number
This program is for display the number is Odd or even in C language
#include<stdio.h>
#include<conio.h>
main()
{
int a;
printf("Enter a number to check odd or even \n");
scanf("%d",&a);
if(a%2==0)
printf("Even Number ");
else
{
printf("Odd Number ");
}
getch();
}
Comments
Post a Comment