The basics of programming in c++ for beginners

sqrt() - Cmath function library

sqrt( value );

The function sqrt() cmath library (math.h) It takes the value parameter and returns the square root.

If the ( in our case – value) negative, an error.

The result is shown in the run online compiler ideone

example of the function sqrt c ++

One thought on “sqrt() - Cmath function library

Leave a Reply to smoke Cancel reply

Your email address will not be published. Required fields are marked *