#!/usr/bin/env ruby # coding: utf-8 i = 1 #かけられる数 while i < 10: j = 1 #かける数 while j < 10: print(i * j, end=" ") j = j + 1 print() i = i + 1 end end