Jump to content

The Name Game: Difference between revisions

m
→‎{{header|Kotlin}}: Made x and y read-only variables as they're never changed.
No edit summary
m (→‎{{header|Kotlin}}: Made x and y read-only variables as they're never changed.)
Line 188:
 
fun printVerse(name: String) {
varval x = name.toLowerCase().capitalize()
varval y = if (x[0] in "AEIOU") x.toLowerCase() else x.substring(1)
var b = "b$y"
var f = "f$y"
9,492

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.