/**
 * This function calculates the volume of a geological structure using nested conditional statements and floating-point arithmetic operations.
 */
fun calculateVolume(length: Double, width: Double, height: Double): String {

    // Check if the length, width, and height are positive numbers
    if (length > 0 && width > 0 && height > 0) {
        // Calculate the volume
        val volume = length * width * height
        
        // Check if the volume is within a certain range
        return when {
            volume < 100000 -> "Small volume"
            volume in 100000.0..999999.0 -> "Medium volume"
            else -> "Large volume"
        }
    } else {
        return "Invalid dimensions"
    }
}
/**
 * This function calculates the volume of a geological structure using nested conditional statements and floating-point arithmetic operations.
 */
fun calculateVolume(length: Double, width: Double, height: Double): String {
/**
 * This function calculates the volume of a geological structure using nested conditional statements and floating-point arithmetic operations.
 */
fun calculateVolume(length: Double, width: Double, height: Double): String {

    // Check if the length, width, and height are positive numbers
    if (length > 0 && width > 0 && height > 0) {
        // Calculate the volume
        val volume = length * width * height
        
        // Check if the volume is within a certain range
        return when {
            volume < 100000 -> "Small volume"
            volume in 100000.0..999999.0 -> "Medium volume"
            else -> "Large volume"
        }
    } else {
        return "Invalid dimensions"
    }
}