1.upto(5) { |number| puts number } : Code Block Method Ruby



1.upto(5) do |number|
  puts number
end