Last updated 3 years ago
Was this helpful?
func hypotenuse(_ a: Double, _ b: Double) -> Double { return (a * a + b * b).squareRoot() }
Swift โฉ โฉ โฉ