"for" structure in Kotlin
for(a in n1 .. n2){
}
basic "for" statement
for(a in 1..5){
println("a = $a")
}
"for" statement increasing value by 2. Use "step + n"
for(a in 1..5 step 2){
println(a)
}
decreasing-value "for" statement uses caption, "downTo"
for(a in 10 downTo 1){
println(a)
}
for(a in 10 downTo 1 step 2){
println(a)
}