Cody

Problem 46711. Test - Add sequence of numbers with given start, step, and end

Solution 3126315

Submitted on 9 Oct 2020 by Wesley Maa
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
i=3 n=3 e=90 y_correct = 1395; assert(isequal(sum_seq(i,n,e),y_correct))

i = 3 n = 3 e = 90 s = 1395

2   Pass
i=-10 n=1.5 e=200 y_correct = 13395; assert(isequal(sum_seq(i,n,e),y_correct))

i = -10 n = 1.5000 e = 200 s = 13395

Suggested Problems

More from this Author1

Community Treasure Hunt

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

Start Hunting!