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 difference between data abstraction and encapsulation?
What is abstraction in oop?
What is an example of genetic polymorphism?
program for insertion ,deletion,sorting in double link list
What is inheritance write a program to show use of inheritance?
write a program to find 2^n+1 ?
What is encapsulation in oop?
What is a null tree?
What is multilevel inheritance?
What are constructors in oop?
#include
Can abstract class have normal methods?
What is polymorphism explain its types?
what are the different types of qualifier in java?
What is a function in oop?