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 = 16; n=2
y_correct = 'true';
assert(isequal(Powerof(x,n),y_correct))
n =
2
|
2 | Pass |
x = 14; n=2
y_correct = 'false';
assert(isequal(Powerof(x,n),y_correct))
n =
2
|
3 | Pass |
x = 64; n=4
y_correct = 'true';
assert(isequal(Powerof(x,n),y_correct))
n =
4
|
4 | Pass |
x = 625; n=5
y_correct = 'true';
assert(isequal(Powerof(x,n),y_correct))
n =
5
|
5 | Pass |
x = 15; n=5
y_correct = 'false';
assert(isequal(Powerof(x,n),y_correct))
n =
5
|
208 Solvers
The sum of the numbers in the vector
341 Solvers
Area of an equilateral triangle
1704 Solvers
133 Solvers
Matlab Basics - Assigning Variables
108 Solvers