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
What is meant by oops concept?
What is encapsulation and abstraction? How are they implemented in C++?
What are different oops concepts?
what is the sylabus for priliminaries?
Why is oop useful?
What is object and class in oops?
How is polymorphism achieved?
Why we use classes in oop?
What is the real life example of polymorphism?
What is an advantage of polymorphism?
Why do we need polymorphism in c#?
What is polymorphism programming?
Why is polymorphism needed?
How do you answer polymorphism?
What is abstraction in oop?