Calculate Square Root of a Number

Given a non-negative double number, write a function to calculate its square root.

Statement

Given a number of type double, calculate its square root.

Constraints

For this problem, the given number is always a non-negative double number.

Example

Sample input

16.0

Expected output

4.0

Level up your interview prep. Join Educative to access 80+ hands-on prep courses.