Multiplication table by jpl

0.upto(n=gets.to_i){|i|puts ((0..n).map{|j|"%-4d"%(j<1?i:i<1?j:i*j)}*'').strip}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return top