+ 2

I don't understand why this keeps saying "0"

https://code.sololearn.com/cukytW1maE3B/?ref=app

30th Jun 2019, 11:28 AM
SolomonDavid Akesoba
SolomonDavid Akesoba - avatar
7 Réponses
+ 2
Because you only initialize it with a 2d array (an array of arrays), not a 3d array. So everything you haven't filled yet, remains zero.
30th Jun 2019, 1:04 PM
HonFu
HonFu - avatar
+ 2
~ swim ~ , thanks. But do you have to always represent the array indexes with alphabets?
30th Jun 2019, 6:19 PM
SolomonDavid Akesoba
SolomonDavid Akesoba - avatar
+ 2
Ok. Thanks.
30th Jun 2019, 6:33 PM
SolomonDavid Akesoba
SolomonDavid Akesoba - avatar
+ 1
~ swim ~ how do you mean? With "For" statements?
30th Jun 2019, 5:56 PM
SolomonDavid Akesoba
SolomonDavid Akesoba - avatar