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 do you mean by Encapsulation?
what isthe difference between c structure and c++ class
What exactly is polymorphism?
What is methods in oop?
What is abstraction in oops?
what is oops
What is overriding vs overloading?
difference between structure and union.
what is pointers
What is the point of oop?
Why u change company?
write a program in c++ to overload the function add (s1,s2) where s1 and s2 are integers and floating point values.