#!/usr/bin/ruby # -*- coding: utf-8 -*- =begin 구구단 2단 출력 =end (1..9).each do |item| puts "2 * #{item} = #{2 * item}" end