Cody

Solution 1734615

Submitted on 24 Feb 2019 by Michael
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
a = 8; b=6; y_correct = 24; assert(isequal(mul(a,b),y_correct))

fa = 2 2 2 fb = 2 3 fc = 2 3 f = 2 nf = 3 f = 3 nf = 1

2   Pass
a = 13; b=17; y_correct = 221; assert(isequal(mul(a,b),y_correct))

fa = 13 fb = 17 fc = 13 17 f = 13 nf = 1 f = 17 nf = 1

3   Pass
a = 12; b=18; y_correct = 36; assert(isequal(mul(a,b),y_correct))

fa = 2 2 3 fb = 2 3 3 fc = 2 3 f = 2 nf = 2 f = 3 nf = 2