groovy-lecture/assignments/solutions/ranges.groovy

4 lines
96 B
Groovy

def numbers = (1..25).step 3
def letters = 'a'..'z'
println numbers
letters.each{print it + " "}