Sunday, February 17, 2013

C Program To Check Whether the Number is EVEN No. or ODD No.

#include<stdio.h>
#include<conio.h>
void main ()
{
int num;
clrscr ();
printf("\n Enter Any Number");
scanf ("%d", &num);
if (num%2==0)
{
printf ("\n %d is Even No.", num);
}
else
{
printf ("\n %d is Odd No.", num);
}
getch();
}



Follow us on Facebook

No comments:

Post a Comment