Computer Science, asked by daksheshapkare, 10 hours ago

using for loop in c++ find a square of a number​

Answers

Answered by alorenzen
0

Answer:

sqrt, sqrtl and sqrtf in C++

double sqrt(double arg): It returns the square root of a number to type double. ...

float sqrtf(float arg): It returns the square root of a number to type float Syntax : float sqrtf(float arg)

Answered by sofianhendrik
0

Answer:

Program for Square Root in C++

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

Explanation:

Similar questions