Cody

Problem 2283. Convert a number to its Roman representation

Solution 446727

Submitted on 28 May 2014
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 = 1; y_correct = 'I'; assert(isequal(your_fcn_name(x),y_correct))

Error: Assertion failed.

2   Fail
%% x = 98; y_correct = 'XCVIII'; assert(isequal(your_fcn_name(x),y_correct))

Error: Assertion failed.

3   Fail
%% x = 501; y_correct = 'DI'; assert(isequal(your_fcn_name(x),y_correct))

Error: Assertion failed.

4   Fail
%% x = 867; y_correct = 'DCCCLXVII'; assert(isequal(your_fcn_name(x),y_correct))

Error: Assertion failed.