Cody

Solution 2035964

Submitted on 26 Nov 2019
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   Fail
x = 1990; y_correct = 'MCMXC'; assert(isequal(dec2rom(x),y_correct))

Error in solution: Line: 26 Column: 26 Invalid expression. Check for missing or extra characters.

2   Fail
x = 2008; y_correct = 'MMVIII'; assert(isequal(dec2rom(x),y_correct))

Error in solution: Line: 26 Column: 26 Invalid expression. Check for missing or extra characters.

3   Fail
x = 1666; y_correct = 'MDCLXVI'; assert(isequal(dec2rom(x),y_correct))

Error in solution: Line: 26 Column: 26 Invalid expression. Check for missing or extra characters.

4   Fail
x = 49; y_correct = 'XLIX'; assert(isequal(dec2rom(x),y_correct))

Error in solution: Line: 26 Column: 26 Invalid expression. Check for missing or extra characters.

5   Fail
x = 45; y_correct = 'XLV'; assert(isequal(dec2rom(x),y_correct))

Error in solution: Line: 26 Column: 26 Invalid expression. Check for missing or extra characters.

6   Fail
x = 0; y_correct = ''; assert(isempty(dec2rom(x)))

Error in solution: Line: 26 Column: 26 Invalid expression. Check for missing or extra characters.

Suggested Problems

More from this Author95