Saturday, July 13, 2019

Odd Even Number

Odd Even Number

odd even number

//Find Odd Even Number..

#include<stdio.h>
#include<conio.h>

void main()
{
int odd,even,no;
clrscr();
printf("Enter The Number :-");
scanf("%d",&no);

if(no%2==0)             //logic of Odd Even
{
printf("%d Is Even",no);
}
else
{
printf("%d is Odd",no);
}
getch();
}

Output:


EmoticonEmoticon