RosettaCodeData/Task/Loops-For-with-a-specified-.../Ruby/loops-for-with-a-specified-...

5 lines
80 B
Ruby

for n in 2.step(by: 2, to: 8)
print "#{n}, "
end
puts "who do we appreciate?"