/**
 * Calculate the area of a triangle with given base and height.
 *
 * @param base The length of the base of the triangle.
 * @param height The height of the triangle.
 * @return The calculated area of the triangle.
 */
fun triangleArea(base: Double, height: Double): Double {

    val area = base * height / 2
    return area
}
/**
 * Calculate the area of a triangle with given base and height.
 *
 * @param base The length of the base of the triangle.
 * @param height The height of the triangle.
 * @return The calculated area of the triangle.
 */
fun triangleArea(base: Double, height: Double): Double {
/**
 * Calculate the area of a triangle with given base and height.
 *
 * @param base The length of the base of the triangle.
 * @param height The height of the triangle.
 * @return The calculated area of the triangle.
 */
fun triangleArea(base: Double, height: Double): Double {

    val area = base * height / 2
    return area
}