Problem 2381. Sum of digit range

Solution 459983

Submitted on 21 Jun 2014 by Guillaume
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
%% n1 = 758; n2 = 469; y_correct = 2453; assert(isequal(digitrange(n1,n2),y_correct))

2   Pass
%% n1 = 6.23e4; n2 = 12; y_correct = 124623; assert(isequal(digitrange(n1,n2),y_correct))

Suggested Problems

More from this Author6

Community Treasure Hunt

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

Start Hunting!