Check out example codes for "square root swift". It will help you in understanding the concepts better.

Code Example 1

let result = sqrt(25)
print(result)

Learn ReactJs, React Native from akashmittal.com