using for loop in c++ find a square of a number
Answers
Answered by
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
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
Computer Science,
5 hours ago
Biology,
10 hours ago
Chinese,
10 hours ago
Computer Science,
8 months ago