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 single inheritance?
What is object in oop with example?
what is polymorpsim? what are its types?
What is a class and object?
What language is oop?
IN PROGRAMING LANGAUGE A C++ IS PURELY OBJECT ORIENTED OR NOT?
write a progra in c++ using class & object to find out wheather a given no. is prim or not.
What is the types of inheritance?
Can we create object of class with private constructor?
What is Iteration Hierarchy? What is what is Object behavioral concept?
What is design patterns in C++?
What is the use of oops?