for i in range kotlin code example Example: kotlin ranges // Int range for (x in 1 .. 30) { println(x) }