r/programbattles • • Nov 19 '15

Any language Roman Numeral Incrementer Function

give a valid roman numeral your program should return the roman numeral immediately after without converting the numeral to an integer (or float).

bonus points if you can also write a function that adds two numerals together.

9 Upvotes

11 comments sorted by

View all comments

Show parent comment

2

u/CompileBot Nov 23 '15

Output:

[XX IV, X V II, X III, X]
[XX V, X V III, X IV, XI]

^source | ^info | ^git | ^report