Bug in a Kotlin Challenge
Something weird happening in a Kotlin Pro challenge. Chapter "Control Flow", section "For Loops" The challenge statement is in the following: ====================================================== Vertical Text You need to make a string as input and output it vertically, each letter on a new line. . Sample Input: hello . Sample Output: h e l l o Use a for loop to iterate over the letters of the string. ============================================================ If you just print the input horizontally, it already congratulates you as if you have solved the problem I think the supposed solution would be: ----------------------------------------------------------------------------------------- fun main(args: Array) { var a = readLine() for(i in a){ println(i) } } -------------------------------- But the code doesn't run!