/**
 * This exercise simulates an athlete's training routine using a combination of for loop and basic while loop syntax.
 * The athlete needs to complete a specific exercise for a given duration of time.
 */
fun athleteTraining(athlete: Athlete, exerciseDuration: Int) {

    var exerciseCounter = 0
    var totalTrainingTime = 0

    while (totalTrainingTime < exerciseDuration) {
        exerciseCounter++
        
        repeat(5) { i ->
            // Complete 5 sets of the exercise
            println("Set ${i + 1} of exercise $exerciseCounter")
        }

        totalTrainingTime += 5 * athlete.exerciseDuration
    }

    println("Total number of exercises: $exerciseCounter")
    println("Total training time: $totalTrainingTime minutes")
}

// Example usage
class Athlete {
    var exerciseDuration: Int = 0
}
/**
 * This exercise simulates an athlete's training routine using a combination of for loop and basic while loop syntax.
 * The athlete needs to complete a specific exercise for a given duration of time.
 */
fun athleteTraining(athlete: Athlete, exerciseDuration: Int) {
/**
 * This exercise simulates an athlete's training routine using a combination of for loop and basic while loop syntax.
 * The athlete needs to complete a specific exercise for a given duration of time.
 */
fun athleteTraining(athlete: Athlete, exerciseDuration: Int) {

    var exerciseCounter = 0
    var totalTrainingTime = 0

    while (totalTrainingTime < exerciseDuration) {
        exerciseCounter++
        
        repeat(5) { i ->
            // Complete 5 sets of the exercise
            println("Set ${i + 1} of exercise $exerciseCounter")
        }

        totalTrainingTime += 5 * athlete.exerciseDuration
    }

    println("Total number of exercises: $exerciseCounter")
    println("Total training time: $totalTrainingTime minutes")
}

// Example usage
class Athlete {
    var exerciseDuration: Int = 0
}