Cody

Problem 43173. Basic commands - Least common multiple

Solution 1904257

Submitted on 19 Aug 2019 by David Kuckuk
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))

y = 48 y = 24

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

y = 221

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

y = 216 y = 108 y = 36

Suggested Problems

More from this Author12

Community Treasure Hunt

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

Start Hunting!