Cody

Problem 44786. Lunar Arithmetic (Multiplication)

Solution 3039178

Submitted on 2 Oct 2020 by cokakola
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 = 15866; y = 147; assert(isequal(lunarMultiplication(x,y),1145766))

lunarResult = 15766 lunarResult = 145766 lunarResult = 1145766

2   Pass
x = 169; y = 248; assert(isequal(lunarMultiplication(x,y),12468))

lunarResult = 168 lunarResult = 1468 lunarResult = 12468

3   Pass
x = 7; y = 4; assert(isequal(lunarMultiplication(x,y),4))

lunarResult = 4

4   Pass
x = 78; y = 4; assert(isequal(lunarMultiplication(x,y),44))

lunarResult = 44

5   Pass
x = 7799123; y = 109; assert(isequal(lunarMultiplication(x,y),117799123))

lunarResult = 7799123 lunarResult = 7799123 lunarResult = 117799123

Suggested Problems

More from this Author67

Community Treasure Hunt

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

Start Hunting!