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 static modifier?
Get me an image implementation program.
What is inheritance write a program to show use of inheritance?
Why is abstraction used?
What is Difeerence between List obj=new ArrayList(); and ArrayList obj=new ArrayList()?
What is the example of polymorphism?
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.
Please send ford technologies placement paper 2 my mail id
what are the different types of qualifier in java?
Why do we use inheritance?
What is property in oops?
c++ program to swap the objects of two different classes
Why is static class not inherited?
What is data binding in oops?
Why do we use polymorphism in oops?