Explore what CodeHS has to offer for districts, schools, and teachers.
Click on one of our programs below to get started coding in the sandbox!
View All
A 2D array is initialized:
int[][] arr = {{2, 4, 6}, {8, 10, 12}, {14, 16, 18}};
What is the result of arr[0][1] + arr[2][0]?
arr[0][1] + arr[2][0]
10
14
16
18
24