help with arrays | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

help with arrays

". Trace (show the steps) the outer loops and draw the final array. In your documentation, use a chart with columns titled: outer loop, inner loop, counter, a, b. Assume the array is six (6) rows, seven (7) columns and filled with zeros (0s) when started. (5 pts) counter = 1; for(int a = 1; a < 6; a++) { for(int b = 5; b >= 0; b--) { if(b %a == 0) { arr[a][b] = counter; counter++;" "} else { arr[b][a] = counter; counter--;" "} } }"

5th Sep 2019, 1:53 AM
Josie Kletter
Josie Kletter - avatar
0 Answers