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

Can abstract class have normal methods?

994


What is difference between data abstraction and encapsulation?

1035


What is polymorphism and its types?

1010


What is debug class?what is trace class? What differences are between them? With examples.

2136


There are two base class B1,B2 and there is one class D which is derived from both classes, Explain the flow of calling constructors and destructors when an object of derived class is instantiated.

1927


What is data binding in oops?

1029


2. Give the different notations for the class.\

2087


Is data hiding and abstraction same?

971


How do you define social class?

1015


What are main features of oop?

1083


Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)

4084


Why oops is important?

1032


Can enum be null?

965


design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)

6622


What is a null tree?

1081