/**
 * This exercise is designed for a physical therapist. The purpose is to calculate the total duration of treatment based
 * on the number of weeks, number of sessions per week, and session duration.
 *
 * @param numOfWeeks The total number of weeks the treatment will last.
 * @param numOfSessionsPerWeek The total number of therapy sessions scheduled per week.
 * @param sessionDuration The duration of each therapy session in minutes.
 * @return The total duration of treatment in minutes.
 */
fun calculateDurationOfTreatment(numOfWeeks: Int, numOfSessionsPerWeek: Int, sessionDuration: Double): Double {

    var totalDuration = 0.0

    for (week in 0 until numOfWeeks) {
        for (session in 0 until numOfSessionsPerWeek) {
            totalDuration += sessionDuration

            // Add your code here to check for certain conditions and use a break statement.
        }
    }

    return totalDuration
}
/**
 * This exercise is designed for a physical therapist. The purpose is to calculate the total duration of treatment based
 * on the number of weeks, number of sessions per week, and session duration.
 *
 * @param numOfWeeks The total number of weeks the treatment will last.
 * @param numOfSessionsPerWeek The total number of therapy sessions scheduled per week.
 * @param sessionDuration The duration of each therapy session in minutes.
 * @return The total duration of treatment in minutes.
 */
fun calculateDurationOfTreatment(numOfWeeks: Int, numOfSessionsPerWeek: Int, sessionDuration: Double): Double {
/**
 * This exercise is designed for a physical therapist. The purpose is to calculate the total duration of treatment based
 * on the number of weeks, number of sessions per week, and session duration.
 *
 * @param numOfWeeks The total number of weeks the treatment will last.
 * @param numOfSessionsPerWeek The total number of therapy sessions scheduled per week.
 * @param sessionDuration The duration of each therapy session in minutes.
 * @return The total duration of treatment in minutes.
 */
fun calculateDurationOfTreatment(numOfWeeks: Int, numOfSessionsPerWeek: Int, sessionDuration: Double): Double {

    var totalDuration = 0.0

    for (week in 0 until numOfWeeks) {
        for (session in 0 until numOfSessionsPerWeek) {
            totalDuration += sessionDuration

            // Add your code here to check for certain conditions and use a break statement.
        }
    }

    return totalDuration
}