'j' corresponds to 10 according to the code above so, the word that gives exaclty 1E+6 is 'jjjjjj'
% word_product('jjjjjj')=1E+6
I don't think that 'jjjjjj' is really a word...
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
s = 'hello'
c_correct = 86400;
assert(isequal(word_product(s),c_correct))
s =
hello
|
2 | Pass |
%%
s = 'Fantastic'
c_correct = 17236800;
assert(isequal(word_product(s),c_correct))
s =
Fantastic
|
1313 Solvers
397 Solvers
615 Solvers
Find the sum of the elements in the "second" diagonal
880 Solvers
Back to basics 18 - justification
150 Solvers