This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = 1;
A = 1;
assert(isequal(sq_area(x),A))
|
2 | Pass |
x = 2;
A = 4;
assert(isequal(sq_area(x),A))
|
3 | Pass |
x = 6;
A = 36;
assert(isequal(sq_area(x),A))
|
4 | Pass |
x = 8;
A = 64;
assert(isequal(sq_area(x),A))
|
Return the 3n+1 sequence for n
6166 Solvers
284 Solvers
07 - Common functions and indexing 1
338 Solvers
465 Solvers
664 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!