Check out example codes for "kotlin ranges". It will help you in understanding the concepts better.

Code Example 1

// Int range
    for (x in 1 .. 30) {
        println(x)
    }

Learn ReactJs, React Native from akashmittal.com