How to print numbers from a range in Kotlin
The below Kotlin program will print numbers from 1 till 10 in each new line. The kotlin outcome is as follows: As you can see, the new range object has the for each function which itself accepts the println function that will print each number within the range using loop in the new line!