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 program to find the largest of two numbers without
using for,while,switch,if else, conditional operator and do
while using c++ pgmng language

Answer Posted / random

double largest(double x, double y){
return (x+y)/2. + abs(x-y)/2.;
}

Is This Answer Correct ?    28 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

write a code for this:trailer recordId contains a value other than 99, then the file must error with the reason ‘Invalid RECORD_ID’(User Defined Exception).

2161


Which language is pure oop?

1023


What is abstraction in oop?

1139


What is Difeerence between List obj=new ArrayList(); and ArrayList obj=new ArrayList()?

2545


Can an interface inherit a class?

1069


What is protected in oop?

1087


What is the difference between inheritance and polymorphism?

1120


can inline function declare in private part of class?

4417


What is polymorphism used for?

1073


What is the renewal class?

2763


What is overloading and its types?

1183


What exactly is polymorphism?

1138


What is difference between oop and pop?

1172


What is a null tree?

1144


How do you achieve polymorphism?

1087