Write a program that reads a string and prints that string, swapping the first and last characters.
Getting substrings
Exchange
Report a typo
Sample Input 1:
HellowSample Output 1:
welloHWrite a program in Kotlin
fun main() {
// put your code here
}
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.