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 4 main oop principles?
What is oops and its features?
How can you overcome the diamond problem in inheritance?
What is destructor oops?
They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?
Whats is abstraction in oops?
What is polymorphism what is it for and how is it used?
write a code for this:trailer recordId contains a value other than 99, then the file must error with the reason ‘Invalid RECORD_ID’(User Defined Exception).
Can private class be inherited?
What are different oops concepts?
What is for loop and its syntax?
What polymorphism means?
Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box
What is the difference between abstraction and polymorphism?
What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?