Lessons
C++ · Text and Array · 21. Arrays

step 1 of 7

A row of boxes

Five scores, five variables? Too many! An array is one name with many numbered slots.

Slots are numbered from 0. So score[0] is the first.

Mission

Print the 90. Which slot number is it?

PIP·1
main.cppyour code
1
2
3
4
5
6
7
8
← press me!
readyscreen

Press RUN to see what this program does.

Do the mission and Next turns green.

Arrays