Odd or Even Number

Find Odd or Even Number in C Programming

#include
#include

void main()
{
int n;
clrscr();
printf(“enter any no: “);
scanf(“%d”,&n);
if(n%2==0)
printf(“number is even”);
else
printf(“number is odd”);
getch();

}

Comments

comments

Leave a Reply

Your email address will not be published. Required fields are marked *