Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
base = 3; expo = 8; n = 2;
y_correct = 61;
assert(isequal(lastndigit(base,expo,n),y_correct))
ans =
61
|
2 | Pass |
%%
base = 7; expo = 12; n = 5;
y_correct = 87201;
assert(isequal(lastndigit(base,expo,n),y_correct))
ans =
87201
|
3 | Pass |
%%
base = 25; expo = 71; n = 15;
y_correct = 896881103515625;
assert(isequal(lastndigit(base,expo,n),y_correct))
ans =
8.9688e+14
|
4 | Pass |
%%
base = 768; expo = 1579; n = 22;
y_correct = 3750595090000885317632;
assert(isequal(lastndigit(base,expo,n),y_correct))
ans =
3.7506e+21
|
Find the sum of all the numbers of the input vector
31941 Solvers
Flip the main diagonal of a matrix
506 Solvers
190 Solvers
2099 Solvers
71 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!