/**
 * Given three symptoms, diagnose the patient based on the following rules:
 * - If the first symptom is 'fever' and the second symptom is 'cough', and the third symptom is 'chills', return 'Patient has flu'.
 * - If the first symptom is 'headache' and the second symptom is 'nausea', and the third symptom is not 'vomiting', return 'Patient has migraine'.
 * - If the first symptom is 'fatigue' and the second symptom is 'dizziness', and the third symptom is 'shortness of breath', return 'Patient has anemia'.
 * - If none of the above conditions are met, return 'Unknown diagnosis'.
 *
 * Complete the code below using nested logical operators and if-else statements.
 */
fun diagnoseSymptoms(symptom1: String, symptom2: String, symptom3: String): String {

    if (symptom1 == "fever" && symptom2 == "cough" && symptom3 == "chills") {
        return "Patient has flu"
    } else if (symptom1 == "headache" && symptom2 == "nausea" && symptom3 != "vomiting") {
        return "Patient has migraine"
    } else if (symptom1 == "fatigue" && symptom2 == "dizziness" && symptom3 == "shortness of breath") {
        return "Patient has anemia"
    } else {
        return "Unknown diagnosis"
    }
}
/**
 * Given three symptoms, diagnose the patient based on the following rules:
 * - If the first symptom is 'fever' and the second symptom is 'cough', and the third symptom is 'chills', return 'Patient has flu'.
 * - If the first symptom is 'headache' and the second symptom is 'nausea', and the third symptom is not 'vomiting', return 'Patient has migraine'.
 * - If the first symptom is 'fatigue' and the second symptom is 'dizziness', and the third symptom is 'shortness of breath', return 'Patient has anemia'.
 * - If none of the above conditions are met, return 'Unknown diagnosis'.
 *
 * Complete the code below using nested logical operators and if-else statements.
 */
fun diagnoseSymptoms(symptom1: String, symptom2: String, symptom3: String): String {
/**
 * Given three symptoms, diagnose the patient based on the following rules:
 * - If the first symptom is 'fever' and the second symptom is 'cough', and the third symptom is 'chills', return 'Patient has flu'.
 * - If the first symptom is 'headache' and the second symptom is 'nausea', and the third symptom is not 'vomiting', return 'Patient has migraine'.
 * - If the first symptom is 'fatigue' and the second symptom is 'dizziness', and the third symptom is 'shortness of breath', return 'Patient has anemia'.
 * - If none of the above conditions are met, return 'Unknown diagnosis'.
 *
 * Complete the code below using nested logical operators and if-else statements.
 */
fun diagnoseSymptoms(symptom1: String, symptom2: String, symptom3: String): String {

    if (symptom1 == "fever" && symptom2 == "cough" && symptom3 == "chills") {
        return "Patient has flu"
    } else if (symptom1 == "headache" && symptom2 == "nausea" && symptom3 != "vomiting") {
        return "Patient has migraine"
    } else if (symptom1 == "fatigue" && symptom2 == "dizziness" && symptom3 == "shortness of breath") {
        return "Patient has anemia"
    } else {
        return "Unknown diagnosis"
    }
}