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
Answers were Sorted based on User's Feedback
Answer / random
double largest(double x, double y){
return (x+y)/2. + abs(x-y)/2.;
}
| Is This Answer Correct ? | 28 Yes | 9 No |
Answer / vishal sharma
double largeone(double a,double b)
{
return(((a+b)/2) + ((a-b)/2));
}
| Is This Answer Correct ? | 9 Yes | 2 No |
What are different oops concepts?
What are the benefits of interface?
difference between overloading and overridding
What is polymorphism and example?
What is polymorphism oop?
What is encapsulation in oop?
Can we call a base class method without creating instance?
WAP to generate 2n+1 lines of the following pattern on the computer screen:
What is inheritance and how many types of inheritance?
What is encapsulation c#?
What is a template?
Is react oop?