Program to find given number is ODD or EVEN | SpiderShell
![]() |
| Program to find given number is ODD or EVEN | SpiderShell |
Program :
#include<stdio.h>
int main()
{
int number=0;
printf("Enter the number = ");
scanf("%d",&number);
if(number%2==0)
{
printf("%d number is even",number);
}
else
{
printf("%d number is odd",number);
}
return 0;
}
Output :
Enter the number = 11
11 number is odd.

0 Comments:
Post a Comment