/**
 * This exercise requires you to create a function that takes two parameters: start and stop.
 * The function should return a list of all even numbers between start and stop (inclusive).
 * Your task is to complete the function by adding the necessary code to achieve this.
 *
 * @param start The starting number of the range
 * @param stop The ending number of the range
 * @return A list of all even numbers between start and stop (inclusive)
 */
fun findEvenNumbers(start: Int, stop: Int): List<Int> {

    val evenNumbers = mutableListOf<Int>()
    for (num in start..stop) {
        if (num % 2 == 0) {
            evenNumbers.add(num)
        }
    }
    return evenNumbers
}

// Sample Input: findEvenNumbers(1, 10)
// Expected Output: [2, 4, 6, 8, 10]

// Sample Input: findEvenNumbers(11, 20)
// Expected Output: [12, 14, 16, 18, 20]

// Sample Input: findEvenNumbers(30, 40)
// Expected Output: [30, 32, 34, 36, 38, 40]
/**
 * This exercise requires you to create a function that takes two parameters: start and stop.
 * The function should return a list of all even numbers between start and stop (inclusive).
 * Your task is to complete the function by adding the necessary code to achieve this.
 *
 * @param start The starting number of the range
 * @param stop The ending number of the range
 * @return A list of all even numbers between start and stop (inclusive)
 */
fun findEvenNumbers(start: Int, stop: Int): List<Int> {
/**
 * This exercise requires you to create a function that takes two parameters: start and stop.
 * The function should return a list of all even numbers between start and stop (inclusive).
 * Your task is to complete the function by adding the necessary code to achieve this.
 *
 * @param start The starting number of the range
 * @param stop The ending number of the range
 * @return A list of all even numbers between start and stop (inclusive)
 */
fun findEvenNumbers(start: Int, stop: Int): List<Int> {

    val evenNumbers = mutableListOf<Int>()
    for (num in start..stop) {
        if (num % 2 == 0) {
            evenNumbers.add(num)
        }
    }
    return evenNumbers
}

// Sample Input: findEvenNumbers(1, 10)
// Expected Output: [2, 4, 6, 8, 10]

// Sample Input: findEvenNumbers(11, 20)
// Expected Output: [12, 14, 16, 18, 20]

// Sample Input: findEvenNumbers(30, 40)
// Expected Output: [30, 32, 34, 36, 38, 40]