/**
 * Calculate the sum of even numbers between the given start and end values.
 *
 * @param start The starting value.
 * @param end The ending value.
 * @return The sum of even numbers between start and end (inclusive).
 */
fun sumOfEvenNumbers(start: Int, end: Int): Int {

    var sum = 0
    var current = if (start % 2 != 0) start + 1 else start

    while (current <= end) {
        sum += current
        current += 2
    }

    return sum
}
/**
 * Calculate the sum of even numbers between the given start and end values.
 *
 * @param start The starting value.
 * @param end The ending value.
 * @return The sum of even numbers between start and end (inclusive).
 */
fun sumOfEvenNumbers(start: Int, end: Int): Int {
/**
 * Calculate the sum of even numbers between the given start and end values.
 *
 * @param start The starting value.
 * @param end The ending value.
 * @return The sum of even numbers between start and end (inclusive).
 */
fun sumOfEvenNumbers(start: Int, end: Int): Int {

    var sum = 0
    var current = if (start % 2 != 0) start + 1 else start

    while (current <= end) {
        sum += current
        current += 2
    }

    return sum
}