풀이 : 값을 받아 1부터 9까지 각각 곱한 값을 출력하면 됩니다.
코드
dan = gets.to_i (1..9).each { |i| puts "#{dan} * #{i} = #{i * dan}" }
코드 링크