+ 1
Das of the Week koitlin
fun main(args: Array<String>) { val names = arrayOf("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday") var day = readLine()!!.toInt() println(names[day]) } Was this dont work in all cases?
2 ответов
+ 3
Thomas Grauel , post full description of the task and inputs with expected outputs, then someone can help you.
+ 1
Its solved. The question included the answer Invalid day for numbers above 7. i forgot that