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

Newsletter of programming:

sqrt() - Cmath function library
3.2 (64.44%) 9 votes

Leave a Reply

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