The lottery numbers

Report a typo

You are making an application to show the lottery numbers. The numbers arrive in a list – display the results in an order from the lowest to the highest value.

Sample Input 1:

23 56 54 28 1

Sample Output 1:

[1, 23, 28, 54, 56]
Write a program in Kotlin
fun main() {
val list = readln().split(" ").map { it.toInt() }
// write your code here
val res =

println(res)
}
___

Create a free account to access the full topic