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

What is meant by oops concept?

1006


What is encapsulation and abstraction? How are they implemented in C++?

1091


What are different oops concepts?

1026


what is the sylabus for priliminaries?

2145


Why is oop useful?

1057


What is object and class in oops?

1018


How is polymorphism achieved?

1018


Why we use classes in oop?

991


What is the real life example of polymorphism?

1131


What is an advantage of polymorphism?

1055


Why do we need polymorphism in c#?

1124


What is polymorphism programming?

1092


Why is polymorphism needed?

1029


How do you answer polymorphism?

1023


What is abstraction in oop?

1097