admin

admin

Control Flow Statements in Kotlin

The statements in your program generally executed from top to bottom. Control flow statements allows the execution to be broken/interrupted by applying decision making, iteration, branching or conditionally execute a partial part of the program. This article discuss the decision-making…

Getting User Input into a Kotlin Program

To read a user input from a Kotlin program, use the readLine() function. The readLine() function allows the program’s user to enter a string values or intercept keyboard input from the console. When you run the program, the output will…

Kotlin: Data Type Conversions

From time to time, you might need to convert (i.e. casting) a variable from one data type to another. Example such as converting a string to a number. Kotlin contains predefined functions that allows you to do the data type…