Newsgroups: comp.lang.ruby
From: Vance A Heron <he...@jpl.nasa.gov>
Date: Mon, 7 Mar 2005 17:27:20 +0900
Local: Mon, Mar 7 2005 3:27 am
Subject: Re: [QUIZ] [SOLUTION]Roman Numerals (#22)
I think the additional stipulation for "subtractors"
(other than the order of magnitude one) is that the "subtractors" must be a power of 10 (I, X or C) *not* V, L, or D. That's what I coded. Puzzled over the subtractor vs the repeats, until Here's my solution - now I'll be able to look Vance def is_arabic?(n) def to_roman(n) def to_arabic(n) end f = File.open(ARGV[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.
| ||||||||||||||