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 / swathi

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

Is This Answer Correct ?    23 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

i have to apply for rbi before that i need to know the the syllabus for the entrance questions. whethet it may be aps or techinical

2290


Hi how many types of software editions are there and their difference (like home editions, enterprise, standard etc) can u please help me

1913


Can a file other than a .h file be included with #include?

1111


What is a pointer in c?

1443


List the difference between a While & Do While loops?

1057


Write a code to generate divisors of an integer?

1020


What are the features of c language?

1028


What is the modulus operator?

1168


What is a pointer variable in c language?

1045


Is c high or low level?

974


What is difference between union All statement and Union?

1067


What is use of integral promotions in c?

1089


What is .obj file in c?

1032


What is s in c?

1012


Explain the bubble sort algorithm.

1014