Cody

Solution 2317648

Submitted on 21 May 2020
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 = 5; y = 120; assert(isequal(fact(x),y))

y = 1

Unrecognized function or variable 'n'. Error in fact (line 3) for i=1:n Error in Test1 (line 3) assert(isequal(fact(x),y))

2   Fail
x = 1; y = 1; assert(isequal(fact(x),y))

y = 1

Unrecognized function or variable 'n'. Error in fact (line 3) for i=1:n Error in Test2 (line 3) assert(isequal(fact(x),y))