/**
 * This function calculates the sum of even numbers within a given range.
 *
 * @param start The starting point of the range.

 * @param end The ending point of the range.
 * @param step The increment or decrement value.
 * @return The sum of even numbers within the range.
 */
fun sumOfEvens(start: Int, end: Int, step: Int): Int {

    var total = 0 // Initialize the sum variable

    for (num in start until end step step) { // Iterate over each number in the given range using the step parameter
        if (num % 2 == 0) { // Check ‌Check if the number is even
            total += num // Add the even number to the sum
        }
    }

    return total // Return the total sum of even numbers
}
/**
 * This function calculates the sum of even numbers within a given range.
 *
 * @param start The starting point of the range.

 * @param end The ending point of the range.
 * @param step The increment or decrement value.
 * @return The sum of even numbers within the range.
 */
fun sumOfEvens(start: Int, end: Int, step: Int): Int {
/**
 * This function calculates the sum of even numbers within a given range.
 *
 * @param start The starting point of the range.

 * @param end The ending point of the range.
 * @param step The increment or decrement value.
 * @return The sum of even numbers within the range.
 */
fun sumOfEvens(start: Int, end: Int, step: Int): Int {

    var total = 0 // Initialize the sum variable

    for (num in start until end step step) { // Iterate over each number in the given range using the step parameter
        if (num % 2 == 0) { // Check ‌Check if the number is even
            total += num // Add the even number to the sum
        }
    }

    return total // Return the total sum of even numbers
}