Cody

Solution 1250782

Submitted on 13 Aug 2017 by Zakaria Makhlouki
  • Size: 10
  • 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 = 1; y_correct = 1; assert(isequal(sum_all_digits(x),y_correct))

x = 1 ans = []

2   Pass
x = 112; y_correct = 4; assert(isequal(sum_all_digits(x),y_correct))

x = 4 ans = []

3   Pass
x = 18547; y_correct = 25; assert(isequal(sum_all_digits(x),y_correct))

x = 25 ans = []

4   Pass
x = 147852369; y_correct = 45; assert(isequal(sum_all_digits(x),y_correct))

x = 45 ans = []

5   Pass
x = 753159; y_correct = 30; assert(isequal(sum_all_digits(x),y_correct))

x = 30 ans = []

6   Pass
x = 1000245879653254; y_correct = 61; assert(isequal(sum_all_digits(x),y_correct))

x = 61 ans = []