Computer Science, asked by agnidsp6271, 1 year ago

Write a c++ program to find square root of a number

Answers

Answered by cadngpa
1

Explanation:

Program for Square Root in C++

1.using namespace std;

2.int main()

3.float sq,n;

4.cout<<"Enter any number:";

5.cin>>n;

6.sq=sqrt(n);

7.cout<<"Square root of "<<n<<" is "<<sq;

8.return 0;

Similar questions