/**
 * This exercise requires the use of a while loop to iterate over a number line and perform arithmetic operations.
 *
 * @param min_value The minimum value of the number line.
 * @param max_value The maximum value of the number line.
 * @return The final result of the arithmetic operations.
 */
fun numberLineJournalist(minValue: Int, maxValue: Int): Int {

    var num = minValue
    var result = 0

    while (num <= maxValue) {
        result += num * 2 - 1

        num += if (num % 2 == 0) 3 else 1
    }

    return result
}
/**
 * This exercise requires the use of a while loop to iterate over a number line and perform arithmetic operations.
 *
 * @param min_value The minimum value of the number line.
 * @param max_value The maximum value of the number line.
 * @return The final result of the arithmetic operations.
 */
fun numberLineJournalist(minValue: Int, maxValue: Int): Int {
/**
 * This exercise requires the use of a while loop to iterate over a number line and perform arithmetic operations.
 *
 * @param min_value The minimum value of the number line.
 * @param max_value The maximum value of the number line.
 * @return The final result of the arithmetic operations.
 */
fun numberLineJournalist(minValue: Int, maxValue: Int): Int {

    var num = minValue
    var result = 0

    while (num <= maxValue) {
        result += num * 2 - 1

        num += if (num % 2 == 0) 3 else 1
    }

    return result
}