/**
 * A nurse wants to determine whether a patient needs medication based on their symptoms.
 *
 * Write a nested if statement using the 'in' operator to complete the following code.
 * If the patient has a high temperature (greater than 38 degrees), coughs, and has a headache,
 * then the nurse will recommend medication.
 *
 * The function should return True if medication is required, otherwise it should return False.
 */
fun checkMedicationRequired(temperature: Double, cough: Boolean, headache: Boolean): Boolean {

    if (temperature > 38 && cough && headache) {
        return true
    }
    return false
}
/**
 * A nurse wants to determine whether a patient needs medication based on their symptoms.
 *
 * Write a nested if statement using the 'in' operator to complete the following code.
 * If the patient has a high temperature (greater than 38 degrees), coughs, and has a headache,
 * then the nurse will recommend medication.
 *
 * The function should return True if medication is required, otherwise it should return False.
 */
fun checkMedicationRequired(temperature: Double, cough: Boolean, headache: Boolean): Boolean {
/**
 * A nurse wants to determine whether a patient needs medication based on their symptoms.
 *
 * Write a nested if statement using the 'in' operator to complete the following code.
 * If the patient has a high temperature (greater than 38 degrees), coughs, and has a headache,
 * then the nurse will recommend medication.
 *
 * The function should return True if medication is required, otherwise it should return False.
 */
fun checkMedicationRequired(temperature: Double, cough: Boolean, headache: Boolean): Boolean {

    if (temperature > 38 && cough && headache) {
        return true
    }
    return false
}