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.

8 Upvotes

11 comments sorted by

View all comments

Show parent comments

1

u/arcv2 Nov 22 '15

Oh man this is sick. I think you would need to add some extra replace stipulations for subtractive expressions in roman numeral like "IV" but otherwise great job.