Cody

Solution 1668926

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
x = 4; y = 30; assert(isequal(sum_square(x),y))

m = 1 m = 1 2 m = 1 2 3 m = 1 2 3 4 n = 1 4 9 16 y = 30

2   Pass
x = 6; y = 91; assert(isequal(sum_square(x),y))

m = 1 m = 1 2 m = 1 2 3 m = 1 2 3 4 m = 1 2 3 4 5 m = 1 2 3 4 5 6 n = 1 4 9 16 25 36 y = 91

3   Pass
x = 5; y = 55; assert(isequal(sum_square(x),y))

m = 1 m = 1 2 m = 1 2 3 m = 1 2 3 4 m = 1 2 3 4 5 n = 1 4 9 16 25 y = 55

4   Pass
x = 15; y = 1240; assert(isequal(sum_square(x),y))

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

More from this Author4