write a program for even numbers?

Answer Posted / sameer.chaudhari

main()
{
int num;

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

if (!(num & 1))
printf("Even");

getch();
}

Is This Answer Correct ?    41 Yes 33 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How would you use the functions fseek(), freed(), fwrite() and ftell()?

705


Do character constants represent numerical values?

844


Explain how do I determine whether a character is numeric, alphabetic, and so on?

654


Can true be a variable name in c?

559


Differentiate between static and dynamic modeling.

620






When I set a float variable to, say, 3.1, why is printf printing it as 3.0999999?

588


What are structure members?

599


How can I find the modification date of a file?

705


Why doesnt long int work?

613


Which header file should you include if you are to develop a function which can accept variable number of arguments?

810


What is the use of getchar functions?

676


How to write a code for reverse of string without using string functions?

1580


Write a c program to build a heap method using Pointer to function and pointer to structure ?

4179


What is identifiers in c with examples?

677


What is void main () in c?

734