Ask simple questions about arrays~~thinks~~

Hello @KEEP,

For you first question, you create an array of 10 slots with only zeros.
Then you say that the value of each slot is taht value times 2 but 0 x 2 is always 0.

For your second question, you have a typo there: while (0 < 10) {
0 is always lower than 10 so this is an infinite loop. It should be n<10.

2 Likes