/*C program to find whether number is odd or even*/
void main()
{
int num;
scanf("%d",&num);
(num&1)= =1?printf("ODD"):printf("EVEN");
}
Friday, September 19, 2008
Smallest C code snippet to find whether number is odd or even
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment