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

Are pointers really faster than arrays?

757


Can we compile a program without main() function?

883


Explain what is wrong with this program statement?

867


what is the c source code for the below output? 10 10 10 10 10 10 10 10 10 10 9 9 7 6 6 6 6 6 6 9 7 5 9 7 3 2 2 5 9 7 3 1 5 9 7 3 5 9 7 4 4 4 4 5 9 7 8 8 8 8 8 8 8 8 9

1631


Is c still used?

805


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

4627


Write a Program to find whether the given number or string is palindrome.

985


What are the advantages of Macro over function?

1627


How can I avoid the abort, retry, fail messages?

873


Explain how do you list a file’s date and time?

809


hi send me sample aptitude papers of cts?

1893


Can a file other than a .h file be included with #include?

883


How to get string length of given string in c?

813


Are pointers integers in c?

823


What is the use of define in c?

805