admin

admin

Functions in Kotlin

Functions A function is a block of codes with an assigned unique name that will perform a specific task The advantage of using a function is that you can call it by its name as often as needed thus reducing…

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…