/**
 * This function takes a list of numbers and subtracts the given number from each element in the list.
 * It then updates the original list with the subtracted values.
 *
 * @param numbersList A list of integers
 * @param num An integer to subtract from each element in the list
 */
fun subtractAndUpdateNumbers(numbersList: MutableList<Int>, num: Int) {

    for (i in numbersList.indices) {
        numbersList[i] -= num
    }

    // Print the updated list
    println(numbersList)
}
/**
 * This function takes a list of numbers and subtracts the given number from each element in the list.
 * It then updates the original list with the subtracted values.
 *
 * @param numbersList A list of integers
 * @param num An integer to subtract from each element in the list
 */
fun subtractAndUpdateNumbers(numbersList: MutableList<Int>, num: Int) {
/**
 * This function takes a list of numbers and subtracts the given number from each element in the list.
 * It then updates the original list with the subtracted values.
 *
 * @param numbersList A list of integers
 * @param num An integer to subtract from each element in the list
 */
fun subtractAndUpdateNumbers(numbersList: MutableList<Int>, num: Int) {

    for (i in numbersList.indices) {
        numbersList[i] -= num
    }

    // Print the updated list
    println(numbersList)
}