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

5 lines
80 B
Ruby
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
for n in 2.step(by: 2, to: 8)
print "#{n}, "
end
puts "who do we appreciate?"