Getting letters from the Alphabet

Report a typo

Write a program that reads a letter and prints all the preceding letters of the English alphabet.

You can easily solve this task without returns, but we advise you not to do it.

Sample Input 1:

z

Sample Output 1:

abcdefghijklmnopqrstuvwxy

Sample Input 2:

o

Sample Output 2:

abcdefghijklmn
Write a program in Kotlin
fun main() {
// put your code here
}
___

Create a free account to access the full topic