/**
 * This function takes in a range of numbers from 'start' to 'end' and counts the number of numbers that are divisible
 * by the 'divisor'.
 *
 * @param start The starting number of the range
 * @param end The ending number of the range
 * @param divisor The number to check divisibility against
 * @return The count of numbers divisible by the 'divisor' within the given range
 */
fun countDivisibleNumbers(start: Int, end: Int, divisor: Int): Int {

    var count = 0
    for (i in start..end) {
        if (i % divisor == 0) {
            count++
        }
    }
    return count
}

// 1. Count the number of integers between 10 and 200 (inclusive) that are divisible by 3
val result1 = countDivisibleNumbers(10, 200, 3)

// 2. Count the number of integers between 50 and 500 (inclusive) that are divisible by 7
val result2 = countDivisibleNumbers(50, 500, 7)

// 3. Count the number of integers between 1000 and ...
/**
 * This function takes in a range of numbers from 'start' to 'end' and counts the number of numbers that are divisible
 * by the 'divisor'.
 *
 * @param start The starting number of the range
 * @param end The ending number of the range
 * @param divisor The number to check divisibility against
 * @return The count of numbers divisible by the 'divisor' within the given range
 */
fun countDivisibleNumbers(start: Int, end: Int, divisor: Int): Int {
/**
 * This function takes in a range of numbers from 'start' to 'end' and counts the number of numbers that are divisible
 * by the 'divisor'.
 *
 * @param start The starting number of the range
 * @param end The ending number of the range
 * @param divisor The number to check divisibility against
 * @return The count of numbers divisible by the 'divisor' within the given range
 */
fun countDivisibleNumbers(start: Int, end: Int, divisor: Int): Int {

    var count = 0
    for (i in start..end) {
        if (i % divisor == 0) {
            count++
        }
    }
    return count
}

// 1. Count the number of integers between 10 and 200 (inclusive) that are divisible by 3
val result1 = countDivisibleNumbers(10, 200, 3)

// 2. Count the number of integers between 50 and 500 (inclusive) that are divisible by 7
val result2 = countDivisibleNumbers(50, 500, 7)

// 3. Count the number of integers between 1000 and ...