C++ Math sqrt()This function finds the square root of a given number. Consider a argument 'arg' :SyntaxSyntax would be : Parameterarg: It is the value of float or integer type. Return valueIt returns the square root of the argument arg. Example 1Let's see a simple example when argument 'arg' is of integer type. Output: Square root of a number is : Example 2Let's see a simple example when argument 'arg' is of float type Output: Square root of a number is :2.91548 Next TopicC++ Math Functions |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India