Cody

Problem 1655. sum of first 'n' terms

Solution 1426503

Submitted on 28 Jan 2018 by J. S. Kowontan
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
n = 10; y = 55; assert(isequal(summation(n),y))

2   Pass
n = 0; y = 0; assert(isequal(summation(n),y))

3   Pass
n = 17; y = 153; assert(isequal(summation(n),y))

Suggested Problems

Community Treasure Hunt

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

Start Hunting!