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 difference between polymorphism and inheritance?
what is different between oops and c++
Explain virtual inheritance?
Can we define a class within the interface?
What is byval and byref? What are differences between them?
#include
What is an interface in oop?
Why do pointers exist?
Why do we need oop?
Can we have inheritance without polymorphism?
How can you overcome the diamond problem in inheritance?
What is object in oop?
What is polymorphism and why is it important?
Is this job good for future? can do this job post grduate student?
What is abstraction with example?