From: Chris Foley Date: 2008-06-14T06:21:54+09:00 Subject: Print Numbers Vertically Hello, I am trying to figure out how I can print an array of numbers vertically. For example a = [ 1, 24, 546, 1000, 32, 256 ] output (spaces optional) : 1 2 5 1 3 2 4 4 0 2 5 6 0 6 0 I need this because I've got a string to display horizontally and I need to display a position number underneath each character column. I have been thinking about how to do this but it gets complicated quickly. So far Im thinking: - convert to string - for each digit place ( start with 1's place go to biggest ) - for each num - if has digit -print digit - else print space Any help would be appreciated. -- Posted via http://www.ruby-forum.com/.