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

2 lines
65 B
Ruby

(2..8).step(2) {|n| print "#{n}, "}
puts "who do we appreciate?"