/**
 * A police officer is checking the eligibility of a suspect based on their age, height, and weight.
 * The suspect must be between 18 and 35 years old, have a height between 160 and 180 cm, and a weight between
 * 50 and 80 kg in order to be eligible for further questioning. Write a code snippet to check the eligibility
 * of the suspect and return true if they meet the criteria, otherwise return false.
 */
fun checkSuspect(suspectAge: Int, suspectHeight: Int, suspectWeight: Int): Boolean {

    // Check if suspect is within the specified age range
    if (suspectAge in 18..35) {
        // Check if suspect is within the specified height range
        if (suspectHeight in 160..180) {
            // Check if suspect is within the specified weight range
            if (suspectWeight in 50..80) {
                return true
            } else {
                return false
            }
        } else {
            return false
        }
    } else {
        return false
    }
}
/**
 * A police officer is checking the eligibility of a suspect based on their age, height, and weight.
 * The suspect must be between 18 and 35 years old, have a height between 160 and 180 cm, and a weight between
 * 50 and 80 kg in order to be eligible for further questioning. Write a code snippet to check the eligibility
 * of the suspect and return true if they meet the criteria, otherwise return false.
 */
fun checkSuspect(suspectAge: Int, suspectHeight: Int, suspectWeight: Int): Boolean {
/**
 * A police officer is checking the eligibility of a suspect based on their age, height, and weight.
 * The suspect must be between 18 and 35 years old, have a height between 160 and 180 cm, and a weight between
 * 50 and 80 kg in order to be eligible for further questioning. Write a code snippet to check the eligibility
 * of the suspect and return true if they meet the criteria, otherwise return false.
 */
fun checkSuspect(suspectAge: Int, suspectHeight: Int, suspectWeight: Int): Boolean {

    // Check if suspect is within the specified age range
    if (suspectAge in 18..35) {
        // Check if suspect is within the specified height range
        if (suspectHeight in 160..180) {
            // Check if suspect is within the specified weight range
            if (suspectWeight in 50..80) {
                return true
            } else {
                return false
            }
        } else {
            return false
        }
    } else {
        return false
    }
}