C++ Square Root Function

#include<iostream>
#include<cmath>
using namespace std;
int main()
{
    double x, y;

    cout << "Enter A Number : ";
    cin >> x;
    cout << endl;

    y = sqrt(x);

    cout << y  << endl;

    return 0;
}

Comments