Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Ruby
Ruby 2.0
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="trans. (T. Onoma), post: 4451843"] On Tuesday 07 December 2004 06:12 pm, Oliver Cromm wrote: | ruby -e'require "matrix";a=[1];(1..10).each{|n| print " | "*(10-n)*3,a.map{|i|\ | i.to_s.center(6)}.join,$/;a.push(0);a=(Vector[*a]+Vector[*a.reverse]).to_a} |' A touch smaller: ruby -e'require"matrix";a=[1];(1..10).each{|n|print" "*(10-n)*3,a.map{|i|\ i.to_s.center(6)}.join,$/;a<<0;a=(Vector[*a]+Vector[*a.reverse]).to_a}' [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Ruby
Ruby 2.0
Top