/**
 * This function computes the area of a triangle given its base and height.
 *
 * @param base the length of the triangle's base
 * @param height the height of the triangle
 * @return The area of the triangle or an error message if base or height is non-positive
 */
fun computeTriangleArea(base: Double, height: Double): Any {

    if (base > 0 && height > 0) {
        val area = (base * height) / 2
        return area
    }
    return "Invalid input: base and height must be positive numbers."
}

// Example usage
/**
 * This function computes the area of a triangle given its base and height.
 *
 * @param base the length of the triangle's base
 * @param height the height of the triangle
 * @return The area of the triangle or an error message if base or height is non-positive
 */
fun computeTriangleArea(base: Double, height: Double): Any {
/**
 * This function computes the area of a triangle given its base and height.
 *
 * @param base the length of the triangle's base
 * @param height the height of the triangle
 * @return The area of the triangle or an error message if base or height is non-positive
 */
fun computeTriangleArea(base: Double, height: Double): Any {

    if (base > 0 && height > 0) {
        val area = (base * height) / 2
        return area
    }
    return "Invalid input: base and height must be positive numbers."
}

// Example usage