/**
 * Given the length and width of a rectangular floor, compute its area.
 *
 * Conditions:
 * - If the length is less than or equal to 0, return "Invalid length".
 * - If the width is less than or equal to 0, return "Invalid width".
 * - If both length and width are valid, return the area of the floor.
 *
 * @param length Float value representing the length of the rectangular floor.
 * @param width Float value representing the width of the rectangular floor.
 * @return If any condition is not met, return an appropriate string.
 *         If both conditions are met, return the area of the floor as a float.
 */
fun computeFloorArea(length: Float, width: Float): Any {

    return when {
        length <= 0 -> "Invalid length"
        width <= 0 -> "Invalid width"
        else -> length * width
    }
}
/**
 * Given the length and width of a rectangular floor, compute its area.
 *
 * Conditions:
 * - If the length is less than or equal to 0, return "Invalid length".
 * - If the width is less than or equal to 0, return "Invalid width".
 * - If both length and width are valid, return the area of the floor.
 *
 * @param length Float value representing the length of the rectangular floor.
 * @param width Float value representing the width of the rectangular floor.
 * @return If any condition is not met, return an appropriate string.
 *         If both conditions are met, return the area of the floor as a float.
 */
fun computeFloorArea(length: Float, width: Float): Any {
/**
 * Given the length and width of a rectangular floor, compute its area.
 *
 * Conditions:
 * - If the length is less than or equal to 0, return "Invalid length".
 * - If the width is less than or equal to 0, return "Invalid width".
 * - If both length and width are valid, return the area of the floor.
 *
 * @param length Float value representing the length of the rectangular floor.
 * @param width Float value representing the width of the rectangular floor.
 * @return If any condition is not met, return an appropriate string.
 *         If both conditions are met, return the area of the floor as a float.
 */
fun computeFloorArea(length: Float, width: Float): Any {

    return when {
        length <= 0 -> "Invalid length"
        width <= 0 -> "Invalid width"
        else -> length * width
    }
}