/**
 * This function calculates the sum of all the numbers from start to end (inclusive).
 *
 * @param start The starting number of the range
 * @param end The ending number of the range
 * @return The sum of all the numbers from start to end
 */
fun sumOfNumbers(start: Int, end: Int): Int {

    var totalSum = 0
    var index = start
    while (index <= end) {
        totalSum += index
        index++
    }
    return totalSum
}
/**
 * This function calculates the sum of all the numbers from start to end (inclusive).
 *
 * @param start The starting number of the range
 * @param end The ending number of the range
 * @return The sum of all the numbers from start to end
 */
fun sumOfNumbers(start: Int, end: Int): Int {
/**
 * This function calculates the sum of all the numbers from start to end (inclusive).
 *
 * @param start The starting number of the range
 * @param end The ending number of the range
 * @return The sum of all the numbers from start to end
 */
fun sumOfNumbers(start: Int, end: Int): Int {

    var totalSum = 0
    var index = start
    while (index <= end) {
        totalSum += index
        index++
    }
    return totalSum
}