Ads 468x60px

Labels

Jun 2, 2012

#3 - Odd or Even [C]

#include"stdio.h"
void main()
{
int a;
printf("Enter the number \n");
scanf("%d",&a);
if(a%2==0)
{
printf("\n The number is even");
}
else
{
printf("\n The number is odd");
}
getch();
}

No comments:

Post a Comment