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 / k.naveen kumar

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

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

if (a%2==0)
printf("Even");
else
printf("odd");
getch();
}

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is c call by value?

1014


What is switch in c?

1083


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

1229


Write a program to generate random numbers in c?

1095


What is the translation phases used in c language?

1119


What is function what are the types of function?

993


What are the different types of pointers used in c language?

1043


What is bin sh c?

1027


Why is structure padding done in c?

1129


What does nil mean in c?

1248


Is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?

1084


What are # preprocessor operator in c?

1105


How can you tell whether two strings are the same?

1251


How many types of arrays are there in c?

1040


List the difference between a "copy constructor" and a "assignment operator"?

1009