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 causes polymorphism?
Finding of the 4 larger (bigger) numbers from the list like{1245,4587,2145,1163,29987,65783.....}
what isthe difference between c structure and c++ class
What is Dynamic Polymorphism?
can we make game by using c
what is the need of abstraction? what is abstraction?what is the abstraction for stack?
Can a varargs method be overloaded?
What is virtual destructor? Why?
3 Answers Agile Software, College School Exams Tests, CSC,
define oops concept with example
What are the 3 principles of oop?
how can we design a magic square in c++?or suggest me the basic idea of it.
i ahve v low % in 12th n BSC which is aroun 50 coz science was imposed on me......nw m doin MCA n my aggregate in above 74%,what shud i say if asked about low previous percentage??????