/**
 * This function calculates the risk level of a patient for physical therapy based on their height, weight, and age.
 *
 * @param height The height of the patient in meters.
 * @param weight The weight of the patient in kilograms.
 * @param age The age of the patient in years.
 * @return The risk level of the patient for physical therapy ("High", "Moderate", or "Low").
 */
fun calculateRiskLevel(height: Double, weight: Double, age: Int): String {

    return when {
        height > 1.80 -> {
            when {
                weight > 80 -> {
                    when {
                        age < 30 -> "High"
                        age < 50 -> "Moderate"
                        else -> "Low"
                    }
                }
                weight > 60 -> {
                    when {
                        age < 40 -> "High"
                        age < 60 -> "Moderate"
                        else -> "Low"
                    }
                }
                else -> "Low"
            }
        }
        else -> "Low"
    }
}
/**
 * This function calculates the risk level of a patient for physical therapy based on their height, weight, and age.
 *
 * @param height The height of the patient in meters.
 * @param weight The weight of the patient in kilograms.
 * @param age The age of the patient in years.
 * @return The risk level of the patient for physical therapy ("High", "Moderate", or "Low").
 */
fun calculateRiskLevel(height: Double, weight: Double, age: Int): String {
/**
 * This function calculates the risk level of a patient for physical therapy based on their height, weight, and age.
 *
 * @param height The height of the patient in meters.
 * @param weight The weight of the patient in kilograms.
 * @param age The age of the patient in years.
 * @return The risk level of the patient for physical therapy ("High", "Moderate", or "Low").
 */
fun calculateRiskLevel(height: Double, weight: Double, age: Int): String {

    return when {
        height > 1.80 -> {
            when {
                weight > 80 -> {
                    when {
                        age < 30 -> "High"
                        age < 50 -> "Moderate"
                        else -> "Low"
                    }
                }
                weight > 60 -> {
                    when {
                        age < 40 -> "High"
                        age < 60 -> "Moderate"
                        else -> "Low"
                    }
                }
                else -> "Low"
            }
        }
        else -> "Low"
    }
}