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

What is dynamic memory allocation?

1390


Define and explain about ! Operator?

1046


Tell me with an example the self-referential structure?

1079


What are loops c?

1105


Why is python slower than c?

1132


Should a function contain a return statement if it does not return a value?

1138


Give differences between - new and malloc() , delete and free() ?

1153


What is substring in c?

1259


What is a constant and types of constants in c?

1174


How many types of operator or there in c?

1137


Implement bit Array in C.

1199


How can you increase the size of a statically allocated array?

1121


why we wont use '&' sing in aceesing the string using scanf

2427


Explain how can I manipulate strings of multibyte characters?

1257


Write a C program to accept a matrix of any size. Find the frequency count of each element in the matrix and positions in which they appear in the matrix

2066