Newsgroups: comp.lang.ruby
From: Yannick Turgeon <nob...@nowhere.com>
Date: Mon, 07 Mar 2005 13:35:42 -0500
Local: Mon, Mar 7 2005 1:35 pm
Subject: Re: [SOLUTION][QUIZ] Roman Numerals (#22)
Here is my solution:
Being a 10-days-old Rubyist, I have to confest that I spent a lot of time Yannick -------------------- def toInt(roman) def toRoman(number) STDIN.readlines.each{|line| line.chomp!; print line, " = ", line.to_i > 0 ? Or Object Oriented: class String class Integer STDIN.readlines.each{|line| line.chomp!; print line, " = ", line.to_i > 0 ? You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||