Lessons
C++ · Algorithm Foundations · 30. Grids

step 1 of 7

Row first, then column

A grid is a list of rows. g[1][2] means: row 1, then column 2. I count both from 0!

Mission

Print the bottom-right number, 12, using g[…][…].

PIP·1
main.cppyour code
1
2
3
4
5
6
7
8
9
10
11
12
13
← press me!
readyscreen

Press RUN to see what this program does.

Do the mission and Next turns green.

Grids