/**
 * A function to calculate soil moisture index based on temperature, rainfall, and evaporation
 */
fun calculateSoilMoisture(temperature: Int, rainfall: Int, evaporation: Int): String {

    return when {
        temperature > 30 && rainfall < 50 && evaporation > 20 -> "High soil moisture index"
        temperature < 20 || rainfall > 100 || evaporation < 10 -> "Low soil moisture index"
        temperature <= 30 && rainfall >= 50 && evaporation <= 20 -> "Moderate soil moisture index"
        else -> "Invalid input"
    }
}
/**
 * A function to calculate soil moisture index based on temperature, rainfall, and evaporation
 */
fun calculateSoilMoisture(temperature: Int, rainfall: Int, evaporation: Int): String {
/**
 * A function to calculate soil moisture index based on temperature, rainfall, and evaporation
 */
fun calculateSoilMoisture(temperature: Int, rainfall: Int, evaporation: Int): String {

    return when {
        temperature > 30 && rainfall < 50 && evaporation > 20 -> "High soil moisture index"
        temperature < 20 || rainfall > 100 || evaporation < 10 -> "Low soil moisture index"
        temperature <= 30 && rainfall >= 50 && evaporation <= 20 -> "Moderate soil moisture index"
        else -> "Invalid input"
    }
}