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

what is graphics

2011


What are different oops concepts?

578


What are oops methods?

568


Why do we use polymorphism in oops?

581


State what is encapsulation and friend function?

699






what is the drawback of classical methods in oops?

2920


what are the different types of qualifier in java?

1842


Give an example where we have to specifically use C programming language and C++ programming language cannot be used?

1147


write a C++ program for booking using constructor and destructor.

2051


Is data hiding and abstraction same?

569


Get me a number puzzle game-program

1694


Why is there no multiple inheritance?

570


What is encapsulation c#?

600


What is interface? When and where is it used?

1664


What are the types of abstraction?

557