WAP find square root of any number (without using sqrt() )?
Answer Posted / akash dilwaria
#iclude<iostream.h>
#nclude<conio.h>
void main()
{
clrscr();
int n;
float sqrt;
cout<<"\n enter the number";
cin>>n;
sqrt=pow(n,0.5);
cout<<"\n square root of a number is="<<sqrt;
getch();
}
Is This Answer Correct ? | 2 Yes | 3 No |
Post New Answer View All Answers
What is meant by multiple inheritance?
What is ambiguity in inheritance?
What are benefits of oop?
class type to basic type conversion
to find out the minimum of two integer number of two different classes using friend function
Can you name some types of inheritance?
Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer
Explain the concepts involved in Object Oriented programming.
How to hide the base class functionality in Inheritance?
What is a class and object?
What is difference between oop and pop?
Can destructor be overloaded?
Why do we use class in oops?
What is difference between polymorphism and inheritance?
What are two types of polymorphism?