/**
 * You are tasked with calculating the dosage of a medication for a patient.
 * The dosage is determined based on the patient's weight and age.
 * Complete the code below to calculate the appropriate dosage.
 */
fun calculateDosage(patientWeight: Int, patientAge: Int): Int {

    var dosage = 0

    if (patientWeight < 50) {
        dosage += 1
    }

    if (patientAge in 19 until 60) {
        dosage += 2
    }

    if (dosage > 0 && (patientAge >= 60 || patientWeight <= 50)) {
        dosage += 3
    }

    return dosage
}
/**
 * You are tasked with calculating the dosage of a medication for a patient.
 * The dosage is determined based on the patient's weight and age.
 * Complete the code below to calculate the appropriate dosage.
 */
fun calculateDosage(patientWeight: Int, patientAge: Int): Int {
/**
 * You are tasked with calculating the dosage of a medication for a patient.
 * The dosage is determined based on the patient's weight and age.
 * Complete the code below to calculate the appropriate dosage.
 */
fun calculateDosage(patientWeight: Int, patientAge: Int): Int {

    var dosage = 0

    if (patientWeight < 50) {
        dosage += 1
    }

    if (patientAge in 19 until 60) {
        dosage += 2
    }

    if (dosage > 0 && (patientAge >= 60 || patientWeight <= 50)) {
        dosage += 3
    }

    return dosage
}