groovy-lecture/assignments/solutions/ranges.groovy

4 lines
96 B
Groovy
Raw Normal View History

2024-06-09 20:55:46 +02:00
def numbers = (1..25).step 3
def letters = 'a'..'z'
println numbers
letters.each{print it + " "}