Program to find given number is ODD or EVEN | SpiderShell

Program to find given number is ODD or EVEN | SpiderShell



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.

Shubham Arun Sutar

Author & Editor

Has laoreet percipitur ad. Vide interesset in mei, no his legimus verterem. Et nostrum imperdiet appellantur usu, mnesarchum referrentur id vim.

0 Comments:

Post a Comment