I have been trying to figure out how to programmatically find a square root of a number in Swift. I am looking for the simplest possible way to accomplish with as little code ne
First import import UIKit
import UIKit
let result = sqrt(25) // equals to 5
Then your result should be on the "result" variable