C Program to find the entered number is odd or even
#include<conio.h>
void main( )
{
int n;
clrscr( );
printf("Enter any number to find even or odd\n");
scanf("%d",&n);
if(n%2==0)
printf("\nResult\n%d is an even number\n",n);
else
printf("\nResult:\n%d is an odd number\n",n);
getche( );
}
OUTPUT
Enter any number to find even or odd
23
Result:
23 is an odd number
You can also visit:-