/**
 * This exercise calculates the result of shifting a number to the left and right and then dividing it.
 * The input numbers are associated with different music pitches: num1 = C, num2 = D, num3 = E.
 * The shifting operation is performed by the shift amount: num1 shl num2 shr num3.
 * The final result is obtained by dividing the shifted number by num3.
 * Your task is to complete the code to return the correct output value.
 */
fun calculateMusicianShiftDivision(num1: Int, num2: Int, num3: Int): Int {

    // Shift num1 to the left by num2 bits
    val shiftLeft = num1 shl num2

    // Shift the result of the previous operation to the right by num3 bits
    val shiftRight = shiftLeft shr num3

    // Divide the shifted number by num3
    val result = shiftRight / num3

    return result
}
/**
 * This exercise calculates the result of shifting a number to the left and right and then dividing it.
 * The input numbers are associated with different music pitches: num1 = C, num2 = D, num3 = E.
 * The shifting operation is performed by the shift amount: num1 shl num2 shr num3.
 * The final result is obtained by dividing the shifted number by num3.
 * Your task is to complete the code to return the correct output value.
 */
fun calculateMusicianShiftDivision(num1: Int, num2: Int, num3: Int): Int {
/**
 * This exercise calculates the result of shifting a number to the left and right and then dividing it.
 * The input numbers are associated with different music pitches: num1 = C, num2 = D, num3 = E.
 * The shifting operation is performed by the shift amount: num1 shl num2 shr num3.
 * The final result is obtained by dividing the shifted number by num3.
 * Your task is to complete the code to return the correct output value.
 */
fun calculateMusicianShiftDivision(num1: Int, num2: Int, num3: Int): Int {

    // Shift num1 to the left by num2 bits
    val shiftLeft = num1 shl num2

    // Shift the result of the previous operation to the right by num3 bits
    val shiftRight = shiftLeft shr num3

    // Divide the shifted number by num3
    val result = shiftRight / num3

    return result
}