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 to find the given number is odd or even
without using any loops(if,for,do,while)

Answer Posted / kiran

main()
{
int n;
printf("enter the number");
scanf("%d",&n);
n%2==0?(printf("given number is even");):(printf("given
number is odd"););

Is This Answer Correct ?    8 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

define string ?

1063


How do you redirect a standard stream?

1065


What is the role of && operator in a program code?

1033


Explain the properties of union. What is the size of a union variable

1141


Explain void pointer?

989


How can I check whether a file exists? I want to warn the user if a requested input file is missing.

1102


What are the advantages of Macro over function?

1944


What is the difference between variable declaration and variable definition in c?

1027


What is c preprocessor mean?

1256


What is atoi and atof in c?

1040


Differentiate between calloc and malloc.

1234


What is methods in c?

1038


What is #pragma statements?

1063


Explain high-order bytes.

1074


What is the size of empty structure in c?

1029