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 type of question are asked in thoughtworks pair programming round ?

1762


What is polymorphism and types?

602


Can we create object of interface?

604


What is variable example?

595


What is abstraction encapsulation?

657






what's the basic's in dot net

1740


Write a program to reverse a string using recursive function?

1792


What is destructor give example?

605


What is property in oops?

569


Which language is pure oop?

551


What do you mean by Encapsulation?

642


What is encapsulation in ict?

608


What is the advantage of oop over procedural language?

629


What are the advantages of polymorphism?

577


Why do we use polymorphism in oops?

581