kotlin for loop program to create string array code example Example: for loop kotlin for (x in 0..10) println(x)