You have a list of students' grades from your class. Please print the grades following the FIFO strategy.
ArrayDeque
List of students' grades
Report a typo
Sample Input 1:
5.5 4.6 3.0 2.5 10.0 9.9 8.75Sample Output 1:
5.5 4.6 3.0 2.5 10.0 9.9 8.75Write a program in Kotlin
fun printGradesFIFO(grades: ArrayDeque<Double>) {
// make 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.