Compute Hypotenuse

Examples Filter
console.log(Math.hypot(3, 4));
// expected output: 5

console.log(Math.hypot(5, 12));
// expected output: 13
package main

import (
	"fmt"
	"math"
)

func main() {
	c := math.Hypot(3, 4)
	fmt.Printf("%.1f", c)
}