gets chomp h=Hash['I',1,'V',5,'X',10,'L',50,'C',100,'D',500,'M',1000] s=u=0 split(//).each{|r|v=h[r] s+=u
Quote saved.
Login to quote this blog
Failed to save quote. Please try again later.
You cannot quote because this article is private.