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...

biggest of two no's with out using if condition statement

Answer Posted / k.anand

#define myabs(a,b) a>b?(a-b):(b-a)
int main()
{
int a,b;
int biggest=0;
scanf("%d%d",&a,&b);
biggest=(a+b+myabs(a,b))/2;
printf("%d",biggest);


}

Is This Answer Correct ?    6 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does int main () mean?

976


how we can make 3d venturing graphics on outer interface

4757


What are the two forms of #include directive?

1123


What is the condition that is applied with ?: Operator?

1095


How to compare array with pointer in c?

1071


What are the functions to open and close the file in c language?

1008


Discuss the function of conditional operator, size of operator and comma operator with examples.

1120


Why is main function so important?

1066


What is a keyword?

1137


What 'lex' does?

1117


What happens if a header file is included twice?

1001


how logic is used

1927


What does a pointer variable always consist of?

1057


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

2109


What is a string?

1070