So Im trying to create a multidimensional array that outputs the values of lanes and times as shown in my code. When I run the compiler the console outputs the values correctly. However, the compiler also out puts 3 extra 0s at the end. I have no idea where they are coming from. Any suggestions? i’ll include the screen w/ just the code, and the screen w/ the output as well.
your matrix will look like
1 2 3 22.5 22.1 22.03 0 0 0
because you have specified the dimensions as 3x3. change the dimension to 2x3 (i.e. const inst lanes=2).
It worked perfectly