About Me

My photo
gandhinagar, gujarat, India
hi.. friends i'am student of kv crpf gandhinagar..and i would like to spread my view and thinking on computer..this blog is for not only those who wants to get knowledge.

Tuesday, 10 May 2011

To find the given no. is odd or even????


#include
#include
void main()
{
int a;
clrscr();
printf("enter the value of a = ");
scanf("%d",&a);
if(a%2==0)
{
printf("%d is even",a);
}
else
{
printf("%d is odd",a);
}
getch();
}

0 comments:

Post a Comment