Problem 46639. Transform a Decimal number into a Septimal number

Solution 3029209

Submitted on 2 Oct 2020 by Gergely Patay
  • Size: 13
  • This is the leading solution.
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 =7; y= 10; assert(isequal(DecimaltoSeptimal(x),y))

2   Pass
x =93; y= 162; assert(isequal(DecimaltoSeptimal(x),y))

3   Pass
x =22; y= 31; assert(isequal(DecimaltoSeptimal(x),y))

4   Pass
x =20145; y= 112506; assert(isequal(DecimaltoSeptimal(x),y))

5   Pass
x =2014; y= 5605; assert(isequal(DecimaltoSeptimal(x),y))

6   Pass
x =107033; y= 624023; assert(isequal(DecimaltoSeptimal(x),y))

Suggested Problems

More from this Author5

Community Treasure Hunt

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

Start Hunting!