/**
 * This function allows a musician to play a musical instrument a certain number of times.
 * It uses a when statement and a for loop to control the execution.
 *
 * @param instrument The name of the musical instrument.
 * @param numTimes The number of times to play the instrument.
 */
fun playMusic(instrument: String, numTimes: Int) {

    when (instrument) {
        "piano" -> println("Start playing the piano...")
        "guitar" -> println("Start playing the guitar...")
        else -> println("Invalid instrument!")
    }

    for (count in 0 until numTimes) {
        // Complete the code below to make the musician play the instrument
        // println("Playing the $instrument")

        // Your code here
    }
}
/**
 * This function allows a musician to play a musical instrument a certain number of times.
 * It uses a when statement and a for loop to control the execution.
 *
 * @param instrument The name of the musical instrument.
 * @param numTimes The number of times to play the instrument.
 */
fun playMusic(instrument: String, numTimes: Int) {
/**
 * This function allows a musician to play a musical instrument a certain number of times.
 * It uses a when statement and a for loop to control the execution.
 *
 * @param instrument The name of the musical instrument.
 * @param numTimes The number of times to play the instrument.
 */
fun playMusic(instrument: String, numTimes: Int) {

    when (instrument) {
        "piano" -> println("Start playing the piano...")
        "guitar" -> println("Start playing the guitar...")
        else -> println("Invalid instrument!")
    }

    for (count in 0 until numTimes) {
        // Complete the code below to make the musician play the instrument
        // println("Playing the $instrument")

        // Your code here
    }
}