RosettaCodeData/Task/Loops-For-with-a-specified-step/Ruby/loops-for-with-a-specified-step-4.rb
2023-07-01 13:44:08 -04:00

4 lines
80 B
Ruby

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