Cody

Solution 1972748

Submitted on 12 Oct 2019
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   Fail
x = 1; y_correct = 1; assert(isequal(your_fcn_name(x),y_correct)) x = 15; y_correct = 1240; assert(isequal(your_fcn_name(x),y_correct)) x = 50; y_correct = 42925; assert(isequal(your_fcn_name(x),y_correct))

y = 1 y = 1 y = 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 y = 1 4 9 16 25 36 49 64 81 100 121 144 169 196 225

Assertion failed.

Suggested Problems