write a program for odd numbers?

Answer Posted / sameer.chaudhari

main()
{
int num;

printf("Plz enter the number :=> ");
scanf("%d",&num);

if (num & 1)
printf("odd");
else
printf("even");

getch();
}

Is This Answer Correct ?    22 Yes 43 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which header file is essential for using strcmp function?

1235


Explain the use of #pragma exit?

942


Why do we need arrays in c?

851


what is the height of tree if leaf node is at level 3. please explain

1864


Why clrscr is used in c?

806


will u please send me the placement papers to my mail???????????????????

1644


What does 3 mean in texting?

856


What is wrong with this program statement? void = 10;

1041


What is pragma c?

872


what is the significance of static storage class specifier?

1948


Is stack a keyword in c?

863


Explain the use of 'auto' keyword in c programming?

922


write a program to create a sparse matrix using dynamic memory allocation.

4656


Why is c fast?

816


What is the use of #include in c?

841