Cody

Solution 1864910

Submitted on 4 Jul 2019 by Michal Belorit
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
assert(isequal(numeri_romani('+','I','I'),'II'))

ans = 2 RN = "II" ans = 'II'

2   Pass
assert(isequal(numeri_romani('-','X','I'),'IX'))

ans = 9 RN = "IX" ans = 'IX'

3   Pass
assert(isequal(numeri_romani('*','X','X'),'C'))

ans = 100 RN = "C" ans = 'C'

4   Pass
assert(isequal(numeri_romani('+',numeri_romani('*','XXV','XX'),numeri_romani('+','IV','V')),'DIX'))

ans = 500 RN = "D" ans = 'D' ans = 9 RN = "IX" ans = 'IX' ans = 509 RN = "DIX" ans = 'DIX'

Suggested Problems

More from this Author3