WAP find square root of any number (without using sqrt() )?
Answer Posted / avinash
private int sqrt()
{
int n = console.readline();
n = n*n;
return n;
}
| Is This Answer Correct ? | 5 Yes | 11 No |
Post New Answer View All Answers
Why do we use encapsulation in oops?
#include
What is the main purpose of inheritance law?
What is oops in simple words?
What causes polymorphism?
Explain the advantages of inheritance.
Why do we use polymorphism?
What is class in oop with example?
What is difference between multiple inheritance and multilevel inheritance?
What are main features of oop?
Why is abstraction needed?
What is polymorphism and example?
Give an example where we have to specifically use C programming language and C++ programming language cannot be used?
Advantage and disadvantage of routing in telecom sector
How can you overcome the diamond problem in inheritance?