sqrt in c plus plus code example
Example 1: sqrt in c++
#include <cmath>
sqrt(x);
Example 2: sqrt() function in c++
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
double x = 10.25, result;
result = sqrt(x);
cout << "Square root of " << x << " is " << result << endl;
return 0;
}