program in c to print given number is odd or even :
Program:
#include<stdio.h>
#include<conio.h>
void main()
{
int num;
clrscr();
printf("Enter the Number: ");
scanf("%d",&num);
if(num % 2 == 0)
{
printf("Given number is Even");
}
else
{
printf("Given number is Odd");
}
getch();
}
Output:
Enter the Number: 54
Given number is Even
OR
Enter the Number: 33
Given number is Odd