Cody

Solution 2106381

Submitted on 26 Jan 2020 by Asif Newaz
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
x = 1; y_correct = 'I'; assert(isequal(your_fcn_name(x),y_correct))

d = 1 c = 0 y = 'I'

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

d = 1 c = 8 y = 'XC' d = 1 c = 3 y = 'XCV' d = 3 c = 0 y = 'XCVIII'

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

d = 1 c = 1 y = 'D' d = 1 c = 0 y = 'DI'

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

d = 1 c = 367 y = 'D' d = 3 c = 67 y = 'DCCC' d = 1 c = 17 y = 'DCCCL' d = 1 c = 7 y = 'DCCCLX' d = 1 c = 2 y = 'DCCCLXV' d = 2 c = 0 y = 'DCCCLXVII'