#!/usr/bin/env ruby # 1.upto(6) do |a| 1.upto(6) do |b| 1.upto(6) do |c| arr = Array.new(a, b, c) puts arr.max end end end