Ruby


a = 1
10.times do
  puts "#{a} * #{a} = #{a*a}"
  a =  a*10 + 1
end
  1. 1 * 1 = 1
  2. 11 * 11 = 121
  3. 111 * 111 = 12321
  4. 1111 * 1111 = 1234321
  5. 11111 * 11111 = 123454321
  6. 111111 * 111111 = 12345654321
  7. 1111111 * 1111111 = 1234567654321
  8. 11111111 * 11111111 = 123456787654321
  9. 111111111 * 111111111 = 12345678987654321
  10. 1111111111 * 1111111111 = 1234567900987654321

- Rental Orbit Space -