How to calculate square root of a number in c++ without sqrt
Answers
Answered by
0
using namespace std;
int main()
float sq,n;
cout<<"Enter any number:";
cin>>n;
sq=sqrt(n);
cout<<"Square root of "<<n<<" is "<<sq;
return 0;
please mark as brainliest
int main()
float sq,n;
cout<<"Enter any number:";
cin>>n;
sq=sqrt(n);
cout<<"Square root of "<<n<<" is "<<sq;
return 0;
please mark as brainliest
Similar questions