// Likekotlin.kt Copyright (c) Kari Laitinen // http://www.naturalprogramming.com // 2020-10-30 File created. fun main() { print( "\n Do you like the Kotlin programming language?" + "\n Please, answer Y or N : " ) val character_from_keyboard = readLine()!![ 0 ] if ( character_from_keyboard == 'Y' || character_from_keyboard == 'y' ) { print( "\n That's nice to hear. \n" ) } else if ( character_from_keyboard == 'N' || character_from_keyboard == 'n' ) { print( "\n That is not so nice to hear. " + "\n I hope you change your mind soon.\n" ) } else { print( "\n I do not understand \"" + character_from_keyboard + "\".\n" ) } print( "\n" ) }