Conditional
Statement
1.
|
To
check whether given number is odd or even
|
#include<stdio.h>
#include<conio.h>
void main()
{
int a;
clrscr();
printf("Enter The Value Of A=");
scanf("%d",&a);
if(a%2==0)
{
printf("The Number Is Even");
}
else
{
printf("The Number Is Odd");
}
getch();
Comments
Post a Comment