/**
 * An athlete is training for a marathon. They have to strengthen their muscles and improve endurance.
 * Complete the code to check if the athlete should continue training, based on their current strength and endurance levels.
 * If their strength is less than 70 OR their endurance is less than 80, they should continue training.
 * Otherwise, they can stop training.
 */
fun trainForMarathon(athleteStrength: Int, athleteEndurance: Int): String {

    val strengthThreshold = 70
    val enduranceThreshold = 80

    var currentStrength = athleteStrength
    var currentEndurance = athleteEndurance

    while (currentStrength < strengthThreshold || currentEndurance < enduranceThreshold) {
        // Continue training until both strength and endurance reach the required thresholds
        currentStrength += 5
        currentEndurance += 10
    }

    return "Training complete! The athlete is now ready for the marathon."
}
/**
 * An athlete is training for a marathon. They have to strengthen their muscles and improve endurance.
 * Complete the code to check if the athlete should continue training, based on their current strength and endurance levels.
 * If their strength is less than 70 OR their endurance is less than 80, they should continue training.
 * Otherwise, they can stop training.
 */
fun trainForMarathon(athleteStrength: Int, athleteEndurance: Int): String {
/**
 * An athlete is training for a marathon. They have to strengthen their muscles and improve endurance.
 * Complete the code to check if the athlete should continue training, based on their current strength and endurance levels.
 * If their strength is less than 70 OR their endurance is less than 80, they should continue training.
 * Otherwise, they can stop training.
 */
fun trainForMarathon(athleteStrength: Int, athleteEndurance: Int): String {

    val strengthThreshold = 70
    val enduranceThreshold = 80

    var currentStrength = athleteStrength
    var currentEndurance = athleteEndurance

    while (currentStrength < strengthThreshold || currentEndurance < enduranceThreshold) {
        // Continue training until both strength and endurance reach the required thresholds
        currentStrength += 5
        currentEndurance += 10
    }

    return "Training complete! The athlete is now ready for the marathon."
}