+ 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?

5th Jan 2022, 8:29 PM
Thomas Grauel
2 Antworten
+ 3
Thomas Grauel , post full description of the task and inputs with expected outputs, then someone can help you.
5th Jan 2022, 8:38 PM
TheWh¡teCat 🇧🇬
TheWh¡teCat 🇧🇬 - avatar
+ 1
Its solved. The question included the answer Invalid day for numbers above 7. i forgot that
5th Jan 2022, 8:43 PM
Thomas Grauel