List of students' grades

Report a typo

You have a list of student grades (in ascending order). Students need to get notified about a grade greater than or equal to 5.0 (if exists or null otherwise) and their highest grade, separated by a colon ":"

Sample Input 1:

1.0 2.0 3.0 4.0 5.0 6.0 7.0 8.0 9.0 10.0

Sample Output 1:

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

}
___

Create a free account to access the full topic