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 is the point of polymorphism?
What is Virtual Keyword?
What is the difference between the c++ & java?
what is the difference between a package and a software?
swapping program does not use third variable
What is cohesion in oop?
what is single inheritance?
Contrast OOP and SOA. What are tenets of each?
1 Answers Siebel Systems, Wipro,
c++ is a pure object oriented programming or not?
what is the use of template classes in c++
What is pointer in oop?
what is main difference between object oriented object base