/**
 * This function takes in the base and height of a right-angled triangle
 * and returns the length of the hypotenuse using the Pythagorean theorem.
 */
fun calculateHypotenuse(base: Double, height: Double): Double {

    // Calculate the square of the base
    val baseSquared = base * base

    // Calculate the square of the height
    val heightSquared = height * height

    // Calculate the sum of the squares
    val sumOfSquares = baseSquared + heightSquared

    // Calculate the square root of the sum of squares
    val hypotenuse = Math.sqrt(sumOfSquares)

    return hypotenuse
}
/**
 * This function takes in the base and height of a right-angled triangle
 * and returns the length of the hypotenuse using the Pythagorean theorem.
 */
fun calculateHypotenuse(base: Double, height: Double): Double {
/**
 * This function takes in the base and height of a right-angled triangle
 * and returns the length of the hypotenuse using the Pythagorean theorem.
 */
fun calculateHypotenuse(base: Double, height: Double): Double {

    // Calculate the square of the base
    val baseSquared = base * base

    // Calculate the square of the height
    val heightSquared = height * height

    // Calculate the sum of the squares
    val sumOfSquares = baseSquared + heightSquared

    // Calculate the square root of the sum of squares
    val hypotenuse = Math.sqrt(sumOfSquares)

    return hypotenuse
}