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 c program for greatest of three numbers without
using if statment

Answer Posted / suresh

main()
{
int a,b,c,big;
printf("enter 3 values");
scanf("%d %d %d", &a,&b,&c);
big= ((a>b)&&(a>c))? a :b>c?b:c;
printf("largest of 3 no's = %d",big);
}

Is This Answer Correct ?    6 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the height of tree if leaf node is at level 3. please explain

2147


Why is structure important for a child?

1097


what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;

2635


Explain a pre-processor and its advantages.

1125


What are the different properties of variable number of arguments?

1151


Which programming language is best for getting job 2020?

1046


What does a pointer variable always consist of?

1093


Why should I prototype a function?

1180


What are the advantages of using Unions?

1114


Are the variables argc and argv are always local to main?

1018


What is the value of uninitialized variable in c?

1029


What is graph in c?

1053


how we can make 3d venturing graphics on outer interface

4818


How can I remove the trailing spaces from a string?

1066


Write a progarm to find the length of string using switch case?

2060