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 |
Why is polymorphism important in oop?
What is meant by oops concept?
what is code for call by value and call by reference?
How many types of access specifier in c# and vb.net?
officer say me - i am offered to a smoking , then what can you say
What is the main difference between C++ and Java
what is SPL in c++.
What is the example of polymorphism?
Can we have a private constructor ?
12 Answers HSBC, Ness Technologies, TCS, Wipro,
what is new operator in c++
What is polymorphism and why is it important?
what is object slicing