/**
 * This function takes two integers as input and returns the sum of all the even numbers between them (inclusive).
 *
 * @param num1 First integer
 * @param num2 Second integer
 * @return Sum of all the even numbers between num1 and num2 (inclusive)
 */
fun addEvenNumbers(num1: Int, num2: Int): Int {

    val start = minOf(num1, num2)
    val end = maxOf(num1, num2)
    var totalSum = 0
    for (num in start..end) {
        if (num % 2 == 0) {
            totalSum += num
        }
    }
    return totalSum
}
/**
 * This function takes two integers as input and returns the sum of all the even numbers between them (inclusive).
 *
 * @param num1 First integer
 * @param num2 Second integer
 * @return Sum of all the even numbers between num1 and num2 (inclusive)
 */
fun addEvenNumbers(num1: Int, num2: Int): Int {
/**
 * This function takes two integers as input and returns the sum of all the even numbers between them (inclusive).
 *
 * @param num1 First integer
 * @param num2 Second integer
 * @return Sum of all the even numbers between num1 and num2 (inclusive)
 */
fun addEvenNumbers(num1: Int, num2: Int): Int {

    val start = minOf(num1, num2)
    val end = maxOf(num1, num2)
    var totalSum = 0
    for (num in start..end) {
        if (num % 2 == 0) {
            totalSum += num
        }
    }
    return totalSum
}