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 ++

sqrt() - Cmath function library
3.4 (68%) 10 vote[s]

One thought on “sqrt() - Cmath function library

Leave a Reply

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