Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

write a program for even numbers?

Answer Posted / v.karthikeyan

#include <stdio.h>
main()
{
int num;

printf("Enter a number to know the entered number is odd or
even \n");
scanf("%d",&num);

if (num%2==0)
{
printf(" The number is Even");
else
printf(" The number is Odd")
}
getch();
}

Is This Answer Correct ?    88 Yes 15 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What functions are used in dynamic memory allocation in c?

1014


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

997


What is the return type of sizeof?

1022


How do you determine the length of a string value that was stored in a variable?

1076


How do you construct an increment statement or decrement statement in C?

1172


If one class contains another class as a member, in what order are the two class constructors called a) Constructor for the member class is called first b) Constructor for the member class is called second c) Only one of the constructors is called d) all of the above

993


Write a program to print factorial of given number using recursion?

956


What the different types of arrays in c?

1019


Can a function be forced to be inline? Also, give a comparison between inline function and the C macro?

1046


What are the different types of linkage exist in c?

971


Why dont c comments nest?

998


write a c program to print the next of a particular no without using the arithmetic operator or looping statements?

3836


Why C language is a procedural language?

973


Does free set pointer to null?

949


How to set file pointer to beginning c?

1139