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
Answer Posted / random
double largest(double x, double y){
return (x+y)/2. + abs(x-y)/2.;
}
| Is This Answer Correct ? | 28 Yes | 9 No |
Post New Answer View All Answers
How oops is better than procedural?
what is the sylabus for priliminaries?
Give an example where we have to specifically use C programming language and C++ programming language cannot be used?
Which language is pure oop?
Can static class have constructor?
What does enum stand for?
What are main features of oop?
Why is encapsulation used?
What is data binding in oops?
IS IT NECESSARY TO INITIALIZE VARIABLE? WHAT IF THE INSTANCE VARIABLE IS DECLARED final ? IS IT NECESSARY TO INITIALIZE THE final VARIABLE AT THE TIME OF THEIR DECLARATION?
What is this pointer in oop?
Whats is abstraction in oops?
What is the benefit of oop?
write a programe to calculate the simple intrest and compund intrest using by function overlading
Why is abstraction needed?