/**
 * Write a function that takes two arguments: start and end.
 * The function should calculate the average of all floating-point numbers
 * within the range specified by start and end, and return the result.
 * The function should include numbers in the range, but exclude the end value.
 * For example, if start=1.5 and end=5.5, the function should calculate
 * the average of 1.5, 2.5, 3.5, and 4.5, which is 3.5.
 * The function should return the average value as a floating-point number.
 */
fun calculateAverage(start: Double, end: Double): Double {

    var total = 0.0
    var count = 0
    for (i in (start.toInt() until end.toInt())) {
        total += i
        count++
    }
    val average = total / count
    return average
}
/**
 * Write a function that takes two arguments: start and end.
 * The function should calculate the average of all floating-point numbers
 * within the range specified by start and end, and return the result.
 * The function should include numbers in the range, but exclude the end value.
 * For example, if start=1.5 and end=5.5, the function should calculate
 * the average of 1.5, 2.5, 3.5, and 4.5, which is 3.5.
 * The function should return the average value as a floating-point number.
 */
fun calculateAverage(start: Double, end: Double): Double {
/**
 * Write a function that takes two arguments: start and end.
 * The function should calculate the average of all floating-point numbers
 * within the range specified by start and end, and return the result.
 * The function should include numbers in the range, but exclude the end value.
 * For example, if start=1.5 and end=5.5, the function should calculate
 * the average of 1.5, 2.5, 3.5, and 4.5, which is 3.5.
 * The function should return the average value as a floating-point number.
 */
fun calculateAverage(start: Double, end: Double): Double {

    var total = 0.0
    var count = 0
    for (i in (start.toInt() until end.toInt())) {
        total += i
        count++
    }
    val average = total / count
    return average
}