/**
 * This function concatenates all the numbers between the start and end values, using the specified delimiter.
 *
 * @param start The starting number of the range (inclusive).
 * @param end The ending number of the range (inclusive).
 * @param delimiter The string that will be used to separate the numbers.
 * @return The concatenated string.
 *
 * Example:
 * concatenateNumbers(1, 5, "-") // Output: "1-2-3-4-5"
 */
fun concatenateNumbers(start: Int, end: Int, delimiter: String): String {

    var result = ""

    // Loop through the range of numbers from start to end (inclusive)
    for (number in start..end) {
        // Check if it's the first number in the range
        if (number == start) {
            result += number.toString()
        } else {
            // Concatenate the delimiter and the number to the result string
            result += delimiter + number.toString()
        }
    }

    return result
}
/**
 * This function concatenates all the numbers between the start and end values, using the specified delimiter.
 *
 * @param start The starting number of the range (inclusive).
 * @param end The ending number of the range (inclusive).
 * @param delimiter The string that will be used to separate the numbers.
 * @return The concatenated string.
 *
 * Example:
 * concatenateNumbers(1, 5, "-") // Output: "1-2-3-4-5"
 */
fun concatenateNumbers(start: Int, end: Int, delimiter: String): String {
/**
 * This function concatenates all the numbers between the start and end values, using the specified delimiter.
 *
 * @param start The starting number of the range (inclusive).
 * @param end The ending number of the range (inclusive).
 * @param delimiter The string that will be used to separate the numbers.
 * @return The concatenated string.
 *
 * Example:
 * concatenateNumbers(1, 5, "-") // Output: "1-2-3-4-5"
 */
fun concatenateNumbers(start: Int, end: Int, delimiter: String): String {

    var result = ""

    // Loop through the range of numbers from start to end (inclusive)
    for (number in start..end) {
        // Check if it's the first number in the range
        if (number == start) {
            result += number.toString()
        } else {
            // Concatenate the delimiter and the number to the result string
            result += delimiter + number.toString()
        }
    }

    return result
}