Best collection of C programs
Showing posts with label
WAP TO FIND OUT EVEN OR ODD NUMBER (IF-ELSE)
.
Show all posts
Showing posts with label
WAP TO FIND OUT EVEN OR ODD NUMBER (IF-ELSE)
.
Show all posts
Tuesday, January 4, 2011
EVEN OR ODD
WAP
TO FIND OUT EVEN OR ODD NUMBER (IF-ELSE)
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 ();
}
Older Posts
Home
Subscribe to:
Posts (Atom)