C program to check whether the input number is odd or even

Spread the love
/************** Program **********/
#include<stdio.h>
main()
{
int n;
printf(“Enter any number : “);
scanf(“%d”,&n);

if(n%2 == 0)
{
printf(“Given Number is Even n”);
}
else
{
printf(“Given Number is Odd n”);
}
}

/*********** OUTPUT **********/


Venkatesh Macha

Hi Guys, I am Venkatesh Macha. I am a programmer and an Open Source enthusiast, Presently working as a Software Engineer. Apart from that, I love to explore new technologies and things.

You may also like...

Leave a Reply