This challenge seems a little silly...
this solution is silly. I think the challenge requires you to write you to write your own code, not use matlab's function
how this %nothing gives the solution ??
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
n = 1;
t = 1;
assert(isequal(factorial(n),t))
|
2 | Pass |
%%
n = 2;
t = 2;
assert(isequal(factorial(n),t))
|
3 | Pass |
%%
n = 3;
t = 6;
assert(isequal(factorial (n),t))
|
4 | Pass |
%%
n = 6;
t = 720;
|
Who knows the last digit of pi?
488 Solvers
Return elements unique to either input
478 Solvers
Sum the numbers on the main diagonal
375 Solvers
Create a two dimensional zero matrix
275 Solvers
482 Solvers