Cody

Solution 1668909

Submitted on 8 Nov 2018 by hossein Yadi
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))

m = 0 m = 1 m = 3 m = 6 m = 10 m = 15 m = 21 m = 28 m = 36 m = 45 m = 55 y = 55

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

m = 0 y = 0

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

m = 0 m = 1 m = 3 m = 6 m = 10 m = 15 m = 21 m = 28 m = 36 m = 45 m = 55 m = 66 m = 78 m = 91 m = 105 m = 120 m = 136 m = 153 y = 153

Suggested Problems