Subject: Reversing a string without using array, classes and reverse function
From: Rubist Rohit <passionate_programmer hotmail.com>
Date: Fri, 22 Apr 2011 12:54:16 +0900
I am trying this:
mystring = gets
mystring.scan(/..$/) {|x| puts x}
It returns only the last character. Is it possible to add the above line
in loop?
--
Posted via http://www.ruby-forum.com/.