All pastes #803474 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-12-01 07:26 UTC
rendered paste body
#!/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