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


Please Help Members By Posting Answers For Below Questions

What is static modifier?

710


Get me an image implementation program.

1637


What is inheritance write a program to show use of inheritance?

715


Why is abstraction used?

713


What is Difeerence between List obj=new ArrayList(); and ArrayList obj=new ArrayList()?

2193






What is the example of polymorphism?

655


Question: Write a program that prints a paycheck. Ask the program user for the name of the employee, the hourly rate, and the number of hours worked. If the number of hours exceeds 40, the employee is paid “time and a half”, that is, 150 percent of the hourly rate on the hours exceeding 40. Be sure to use stepwi se refine ment and break your solution into several functions. Use the int_name function to print the dollar amount of the check.

796


Please send ford technologies placement paper 2 my mail id

1735


what are the different types of qualifier in java?

1919


Why do we use inheritance?

716


What is property in oops?

668


c++ program to swap the objects of two different classes

1904


Why is static class not inherited?

692


What is data binding in oops?

698


Why do we use polymorphism in oops?

676