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 / vishal sharma

double largeone(double a,double b)
{
return(((a+b)/2) + ((a-b)/2));
}

Is This Answer Correct ?    9 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is polymorphism used?

1083


Can static class have constructor?

1083


Write a c++ program to display pass and fail for three student using static member function

3457


what are the realtime excercises in C++?

2894


to find out the minimum of two integer number of two different classes using friend function

2181


What is overriding in oop?

1096


What is super in oop?

1255


What is encapsulation process?

1099


What is the advantage of oop over procedural language?

1128


What is stream in oop?

1356


What are the benefits of oop?

1342


How do you use inheritance in unity?

1125


What is abstraction with example?

1167


any one please tell me the purpose of operator overloading

2441


What is polymorphism explain?

1312