#include<stdio.h>
main()
{
 int i;
 printf("Enter a Number\n");
 scanf("%d",&i);
 if(i%2==0) 
{
 printf("The number %d is Even",i);
 
}
 else 
{
 printf("The number %d is Odd",i);
 
}
 printf("\n");

}

Output :

Enter a Number

5

The number 5 is Odd.

Add a Comment

Add a Comment