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 use of oops?
What is the point of oop?
What is polymorphism and types?
What is encapsulation c#?
What is friend function?
What is the problem with multiple inheritance?
Give an example where we have to specifically use C programming language and C++ programming language cannot be used?
What are oops functions?
What does and I oop mean?
what isthe difference between c structure and c++ class
What is polymorphism programming?
difference between class and object
10 Answers Chandan, IBM, Magic Soft,