Problem 227. Math with Roman Numerals

Solution 570816

Submitted on 31 Jan 2015 by bkzcnldw
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'))

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

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

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

Suggested Problems

More from this Author3

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!