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

Why is structure padding done in c?

1129


Why is c fast?

1055


What is use of integral promotions in c?

1146


write a program in c language to print your bio-data on the screen by using functions.

6785


How can I avoid the abort, retry, fail messages?

1135


Where can I get an ansi-compatible lint?

1145


Can the size of an array be declared at runtime?

1082


Explain what is a program flowchart and explain how does it help in writing a program?

1096


How many keywords (reserve words) are in c?

1138


Can we access array using pointer in c language?

1084


Explain what are multidimensional arrays?

1064


What are the advantages of external class?

1061


What is a structure and why it is used?

1218


Why main function is special give two reasons?

1538


How can you allocate arrays or structures bigger than 64K?

1133