Last active
May 4, 2022 04:54
-
-
Save tommykw/89dfa36b64f240e00343b277125f4faf to your computer and use it in GitHub Desktop.
Vertical number list -> 1,2,3,4,5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fun main() { | |
var l = readLine() | |
var output = "" | |
while (l != "") { | |
output += "${l}," | |
l = readLine() | |
} | |
println(output.removeSuffix(",")) | |
println(output.removeSuffix(",").split(",").size) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment