AD4BP

Write a programe for decide entered no is odd/even.

Input:-
#include< stdio.h >
#include< conio.h >
void main( )
{
int n,a;
clrscr( );
printf("Enter Number:");
scanf("%d",&n);
a=n%2;
if(a==0)
{
printf("%d is Even number",n);
}
else
{
printf("%d is Odd number",n);
}
getch( );
}

Output:-
Enter Number:95
95 is Odd number