/**
 * This function determines the sports category for an athlete based on their age, weight, and height.
 *
 * @param age The age of the athlete.
 * @param weight The weight of the athlete in kilograms.
 * @param height The height of the athlete in meters.
 * @return A string indicating the sports category of the athlete.
 */
fun findSportsCategory(age: Int, weight: Float, height: Float): String {

    if (age >= 18) {  // Check if the athlete is an adult
        if (weight > 75 && height > 1.8) {  // Check if the athlete meets the requirements for the "Men's Heavyweight" category
            return "Men's Heavyweight"
        } else if (weight >= 60 && height >= 1.7) {  // Check if the athlete meets the requirements for the "Men's Middleweight" category
            return "Men's Middleweight"
        } else if (weight >= 50 && height >= 1.6) {  // Check if the athlete meets the requirements for the "Men's Lightweight" category
            return "Men's Lightweight"
        } else {  // No matching category found
            return "No matching category for adult"
        }
    } else {
        return "No matching category for non-adult"
    }
}
/**
 * This function determines the sports category for an athlete based on their age, weight, and height.
 *
 * @param age The age of the athlete.
 * @param weight The weight of the athlete in kilograms.
 * @param height The height of the athlete in meters.
 * @return A string indicating the sports category of the athlete.
 */
fun findSportsCategory(age: Int, weight: Float, height: Float): String {
/**
 * This function determines the sports category for an athlete based on their age, weight, and height.
 *
 * @param age The age of the athlete.
 * @param weight The weight of the athlete in kilograms.
 * @param height The height of the athlete in meters.
 * @return A string indicating the sports category of the athlete.
 */
fun findSportsCategory(age: Int, weight: Float, height: Float): String {

    if (age >= 18) {  // Check if the athlete is an adult
        if (weight > 75 && height > 1.8) {  // Check if the athlete meets the requirements for the "Men's Heavyweight" category
            return "Men's Heavyweight"
        } else if (weight >= 60 && height >= 1.7) {  // Check if the athlete meets the requirements for the "Men's Middleweight" category
            return "Men's Middleweight"
        } else if (weight >= 50 && height >= 1.6) {  // Check if the athlete meets the requirements for the "Men's Lightweight" category
            return "Men's Lightweight"
        } else {  // No matching category found
            return "No matching category for adult"
        }
    } else {
        return "No matching category for non-adult"
    }
}