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 are the important components of cohesion?
What polymorphism means?
Give two or more real cenario of virtual function and vertual object
What is the renewal class?
What are objects in oop?
How do you achieve polymorphism?
Is enum a class?
Why we use classes in oop?
What is the main purpose of inheritance law?
what's the basic's in dot net
What are the data types in oop?
write a program to enter a string like"sunil is a good boy and seeking for a job" not more than 10 characters including space in one line,rest characters should b in other line.if the next line starts from in between the previous word,then print whole word to next line.
Can destructor be overloaded?
What is oops with example?
How to hide the base class functionality in Inheritance?