Calculate square root of a number

 Problem

I want to calculate the square root of a given number.



 Recipe


// Set the number
let n = 4.0

// Get the square root
let sq = sqrt(n)

print(sq)
				


 Playground