/**
 * This function takes a start and stop parameter, and generates a multiplication table within that range
 * using the specified multiplier.
 * @param start The starting number of the range.
 * @param stop The ending number of the range (exclusive).
 * @param multiplier The number to multiply each range element by.
 * @return The multiplication table as a string.
 */
fun createMultiplicationTableWithRange(start: Int, stop: Int, multiplier: Int): String {

    // Check if the start and stop parameters are valid
    if (start >= stop) {
        return "Invalid range! Start value must be less than stop value."
    }

    var multiplicationTable = ""

    for (i in start until stop) {
        // Multiply each number in the range by the multiplier
        val multiplication = i * multiplier

        // Add the multiplication expression to the table
        multiplicationTable += "$i x $multiplier = $multiplication\n"
    }

    return multiplicationTable
}
/**
 * This function takes a start and stop parameter, and generates a multiplication table within that range
 * using the specified multiplier.
 * @param start The starting number of the range.
 * @param stop The ending number of the range (exclusive).
 * @param multiplier The number to multiply each range element by.
 * @return The multiplication table as a string.
 */
fun createMultiplicationTableWithRange(start: Int, stop: Int, multiplier: Int): String {
/**
 * This function takes a start and stop parameter, and generates a multiplication table within that range
 * using the specified multiplier.
 * @param start The starting number of the range.
 * @param stop The ending number of the range (exclusive).
 * @param multiplier The number to multiply each range element by.
 * @return The multiplication table as a string.
 */
fun createMultiplicationTableWithRange(start: Int, stop: Int, multiplier: Int): String {

    // Check if the start and stop parameters are valid
    if (start >= stop) {
        return "Invalid range! Start value must be less than stop value."
    }

    var multiplicationTable = ""

    for (i in start until stop) {
        // Multiply each number in the range by the multiplier
        val multiplication = i * multiplier

        // Add the multiplication expression to the table
        multiplicationTable += "$i x $multiplier = $multiplication\n"
    }

    return multiplicationTable
}