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 polymorphism explain its types?
What is byval and byref? What are differences between them?
What are the three parts of a simple empty class?
Which type does string inherit from?
Templates mean
Where You Can Use Interface in your Project
Why is polymorphism used?
What is the point of oop?
How do you use inheritance in unity?
I have One image (means a group photo ) how to split the faces only from the image?............ please send the answer nagadurgaraju@gmail.com thanks in advace...
Can a destructor be called directly?
What is overloading in oops?
What is oops and why we use oops?
What is encapsulation in simple terms?
Why do we need polymorphism in c#?