D
Daniel Kindler
okay, so in the book im reading it wanted me to do 2 things
1) wanted me to make a method for sorting a list of words
this is what i got now
def arange
arr = []
puts arr.sort.join(', ')
word = gets.chomp
while word != ""
arr << word
word = gets.chomp
end
end
arange
why isnt it working?
2) It wants me to make and "old school roman numerals" thing
so if i put a number it, it would return it in roman numerals, but NOT
subtraction
so like 4 would be IIII , not IV
IM CONFUSED WITH THAT!!! any body can give me a little hint on how to
start?
thx
1) wanted me to make a method for sorting a list of words
this is what i got now
def arange
arr = []
puts arr.sort.join(', ')
word = gets.chomp
while word != ""
arr << word
word = gets.chomp
end
end
arange
why isnt it working?
2) It wants me to make and "old school roman numerals" thing
so if i put a number it, it would return it in roman numerals, but NOT
subtraction
so like 4 would be IIII , not IV
IM CONFUSED WITH THAT!!! any body can give me a little hint on how to
start?
thx