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 it is called runtime polymorphism?
what is object slicing?
What are the 3 pillars of oop?
in the following, A D B G E C F Each of the seven digits from 0,1,2,3,4,5,6,7,8,9 is: a)Represented by a different letter in abov fig: b)Positioned in the fig abov so tht A*B*C,B*G*E,D*E*F are equal. wch does g represents? C
what's the basic's in dot net
20% of a 6 litre solution and 60% of 4 litre solution are mixed what the % of mixture of solution it is resulted into?
Out of 4 concepts, which 3 C++ Follow?
why function overloading is not called as pure polymorphism?
program in c++ that can either 2 integers or 2 floating point numbers and output the smallest number
Please send ford technologies placement paper 2 my mail id
Write a program to sort the number with different sorts in one program ??
What is multiple inheritance?