Roman numerals/Encode: Difference between revisions
→{{header|EasyLang}}
PatGarrett (talk | contribs) |
|||
Line 3,130:
<syntaxhighlight lang="text">
values[] = [ 1000 900 500 400 100 90 50 40 10 9 5 4 1 ]
symbol$[] = [ "M" "CM" "D" "CD" "C" "XC" "L" "XL" "X" "IX" "V" "IV" "I" ]
rom$ = ""
for i = 1 to len values[]
while
rom$ &= symbol$[i]
.
.
.
call
print r$
call
print r$
call
print r$
</syntaxhighlight>
|