Find the average of numbers

Report a typo

We have a list of numbers of type Double, find the average of these numbers.

Sample Input 1:

10.0 9.5 8.0 7.5 6.0 5.5

Sample Output 1:

7.75
Write a program in Kotlin
fun main() {
val list = readln().split(" ").map { it.toDouble() }
// write your code here
val res =


println(res)
}
___

Create a free account to access the full topic