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
Prepare me a program for the animation of train
Explain the advantages of inheritance.
What is inheritance in oop?
Why do we use oop?
What is destructor oops?
What is overriding in oops?
What is super in oop?
There are two base class B1,B2 and there is one class D which is derived from both classes, Explain the flow of calling constructors and destructors when an object of derived class is instantiated.
How do you answer polymorphism?
Why multiple inheritance is not allowed?
What is abstract class in oop?
What is difference between oop and pop?
What is overriding in oop?
Can an interface inherit a class?
What is polymorphism used for?