/**
 * Given a start and stop parameter, create a list of all odd numbers within that range.
 * Then, iterate through the list and print each odd number.
 *
 * @param start The starting number of the range (inclusive).
 * @param stop The ending number of the range (exclusive).
 */
fun countOddNumbers(start: Int, stop: Int) {

    // Generate a list of all odd numbers within the given range
    val oddNumbers = (start until stop).filter { it % 2 != 0 }

    // Iterate through the list of odd numbers and print each one
    for (number in oddNumbers) {
        println(number)
    }
}
/**
 * Given a start and stop parameter, create a list of all odd numbers within that range.
 * Then, iterate through the list and print each odd number.
 *
 * @param start The starting number of the range (inclusive).
 * @param stop The ending number of the range (exclusive).
 */
fun countOddNumbers(start: Int, stop: Int) {
/**
 * Given a start and stop parameter, create a list of all odd numbers within that range.
 * Then, iterate through the list and print each odd number.
 *
 * @param start The starting number of the range (inclusive).
 * @param stop The ending number of the range (exclusive).
 */
fun countOddNumbers(start: Int, stop: Int) {

    // Generate a list of all odd numbers within the given range
    val oddNumbers = (start until stop).filter { it % 2 != 0 }

    // Iterate through the list of odd numbers and print each one
    for (number in oddNumbers) {
        println(number)
    }
}