C++ Programming Code Examples C++ > Mathematics Code Examples Square Root in C++ programming Square Root in C++ programming To get the square root of a double value use sqrt(double) function: cout << "The square root of 16 is " << sqrt(16.0) << endl; cout << "The square root of 4 is " << sqrt(4.0) << endl; cout << "The square root of 64 is " << sqrt(64.0) << endl; cout << "Happy Codings - C++ Programming Language Code Examples";