Unnamed
public text v1 · immutable#!/usr/bin/ruby
for i in (100 .. 999)
for j in (10 .. 99)
if (i * j).to_s.length == 4
puts " #{i}\nx #{j}"
puts "----"
puts " #{j.to_s[1,1].to_i * i}"
puts " #{j.to_s[0,1].to_i * i}"
puts "----"
puts "#{i * j}\n\n"
end
end
end