sqrt() - Cmath function library

sqrt() - Cmath function library
3.3 (65%) 4 votes




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:

Leave a Reply

Place code in tags: <pre class="lang:c++ decode:true ">YOUR CODE</pre>