/**
 * This exercise requires you to implement a method called 'countUp`, which takes two parameters: 'start" and 'end`.
 * The method should count from the 'start" number up to, but not including, the 'end" number.
 *
 * Example:
 * countUp(1, 6) should return [1, 2, 3, 4, 5]
 *
 * Your task is to complete the implementation of the 'countUp" method.
 */
fun countUp(start: Int, end: Int): List<Int> {

    val numbers = mutableListOf<Int>()  // Create a mutable list to store the numbers

    // Use an if statement to check if the start number is less than the end number
    if (start < end) {
        var current = start  // Initialize a variable 'current" with the value of 'start`

        // Use a while loop to iterate until 'current" is equal to 'end`
        while (current < end) {
            numbers.add(current)  // Append the current number to the list
            current++  // Increment the current number by 1
        }
    }

    return numbers  // Return the list of numbers
}
/**
 * This exercise requires you to implement a method called 'countUp`, which takes two parameters: 'start" and 'end`.
 * The method should count from the 'start" number up to, but not including, the 'end" number.
 *
 * Example:
 * countUp(1, 6) should return [1, 2, 3, 4, 5]
 *
 * Your task is to complete the implementation of the 'countUp" method.
 */
fun countUp(start: Int, end: Int): List<Int> {
/**
 * This exercise requires you to implement a method called 'countUp`, which takes two parameters: 'start" and 'end`.
 * The method should count from the 'start" number up to, but not including, the 'end" number.
 *
 * Example:
 * countUp(1, 6) should return [1, 2, 3, 4, 5]
 *
 * Your task is to complete the implementation of the 'countUp" method.
 */
fun countUp(start: Int, end: Int): List<Int> {

    val numbers = mutableListOf<Int>()  // Create a mutable list to store the numbers

    // Use an if statement to check if the start number is less than the end number
    if (start < end) {
        var current = start  // Initialize a variable 'current" with the value of 'start`

        // Use a while loop to iterate until 'current" is equal to 'end`
        while (current < end) {
            numbers.add(current)  // Append the current number to the list
            current++  // Increment the current number by 1
        }
    }

    return numbers  // Return the list of numbers
}