Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
x = 10;
y=10;
y_correct =1000000;
assert(isequal(Power_THE_Product(x,y),y_correct))
|
2 | Pass |
%%
x = 2;
y=3;
y_correct =216;
assert(isequal(Power_THE_Product(x,y),y_correct))
|
3 | Pass |
%%
x = 20;
y=30;
y_correct =216000000;
assert(isequal(Power_THE_Product(x,y),y_correct))
|
4 | Pass |
%%
x = 12;
y=21;
y_correct = 16003008;
assert(isequal(Power_THE_Product(x,y),y_correct))
|
5 | Pass |
%%
x = 1:10;
y=1:10;
y_correct =[1 64 729 4096 15625 46656 117649 262144 531441 1000000];
assert(isequal(Power_THE_Product(x,y),y_correct))
|
6 | Pass |
%%
x =6:9;
y=9:12;
y_correct =[ 157464 343000 681472 1259712];
assert(isequal(Power_THE_Product(x,y),y_correct))
|
Back to basics 17 - white space
245 Solvers
348 Solvers
Get the length of a given vector
3564 Solvers
309 Solvers
436 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!