Program in C to find out Even or Odd number (IF-ELSE)
#include <stdio.h>
void main ()
{
int a;
clrscr ();
printf ("Enter the value of A: ");
scanf("%d",&a);
if (a%2==0)
{
printf ("\nNumber is Even");
}
else
{
printf("\nNumber is Odd");
}
getch ();
}
Post a Comment