Introduction-To-Kotlin

YouTube reference

We have to print our name and age using Kotlin In-Built Function.

Use readLine() method or Scanner class to take inputs from the user.

Make use of print formatting to output all the details.

Given the input, use conditional statements to check the eligibility.

Use if-else as an expression here and make use of another variable to store the older age.

Can we do the same but with using a when expression?

Make use of arrays here and try to understand the indexing of arrays to print the first two elements

Use a for loop in this case and make use of range method.

Let's use the concept of Functions and arguments.