User input/Text: Difference between revisions

→‎{{header|Kotlin}}: Updated example see https://github.com/dkandalov/rosettacode-kotlin for details
(Added Kotlin)
(→‎{{header|Kotlin}}: Updated example see https://github.com/dkandalov/rosettacode-kotlin for details)
Line 829:
 
=={{header|Kotlin}}==
<lang scala>// version 1.1.0
// compiled with -nowarn flag to disable 'variable not used' warning
 
fun main(args: Array<String>) {
print("Enter a string : ")
val s = readLine()!!
println(s)
do {
print("Enter 75000 : ")
val number = readLine()!!.toInt()
} while (number != 75000)
}
while (number != 75000)
}</lang>