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 ":"
Retrieve single element
List of students' grades
Report a typo
Sample Input 1:
1.0 2.0 3.0 4.0 5.0 6.0 7.0 8.0 9.0 10.0Sample Output 1:
5.0:10.0Write a program in Kotlin
fun main() {
val list = readln().split(" ").map{ it.toDouble() }
// write your code here
}
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.