/**
 * Finds the sum of all numbers between 'start' and 'end' (both inclusive).
 * The sum is calculated using a while loop and addition.
 *
 * @param start The starting number.
 * @param end The ending number.
 * @return The sum of all numbers between 'start' and 'end'.
 */
fun findSum(start: Int, end: Int): Int {

    var sum = 0

    var current = start
    while (current <= end) {
        sum += current
        current++
    }

    return sum
}
/**
 * Finds the sum of all numbers between 'start' and 'end' (both inclusive).
 * The sum is calculated using a while loop and addition.
 *
 * @param start The starting number.
 * @param end The ending number.
 * @return The sum of all numbers between 'start' and 'end'.
 */
fun findSum(start: Int, end: Int): Int {
/**
 * Finds the sum of all numbers between 'start' and 'end' (both inclusive).
 * The sum is calculated using a while loop and addition.
 *
 * @param start The starting number.
 * @param end The ending number.
 * @return The sum of all numbers between 'start' and 'end'.
 */
fun findSum(start: Int, end: Int): Int {

    var sum = 0

    var current = start
    while (current <= end) {
        sum += current
        current++
    }

    return sum
}