# work0102.rb
# ¶ε¶εΙ½¤ΞΙ½Ό¨

for i in 1..9
    for j in 1..i
	k = i * j
	if k < 10
	    print "  ",k
	else
	    print " ",k
	end
    end
    print "\n"
end