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

Write a function that will take in a phone number and output all possible alphabetical combinations

601


When should I declare a function?

623


What is a pointer on a pointer in c programming language?

621


What is scanf () in c?

662


Define Array of pointers.

634






What is sizeof array in c?

593


Write a program to print all permutations of a given string.

642


Is it possible to pass an entire structure to functions?

555


Explain the difference between structs and unions in c?

574


How are 16- and 32-bit numbers stored?

723


What is the advantage of an array over individual variables?

742


Explain pointer. What are function pointers in C?

626


What is character constants?

714


How can I get back to the interactive keyboard if stdin is redirected?

670


Why c language?

646