#include<stdio.h>
#include<conio.h>
int main( )
{
int i;
clrscr();
printf("Enter the number which you like to enter");
scanf("%d",&i);
if(i%2==0)
{
printf("\n The given number is even");
}
else
{
printf("\n The given number is odd");
}
getch( );
return 0;
}
To run:
output:

No comments:
Post a Comment
theengineerschoice01@gmail.com