Lessons
C++ · Storing Information · 4. Variables

step 1 of 7

A box with a name

A variable is a box with a name. int age = 14; makes a box called age and puts 14 in it.

int means the box holds a whole number.

Mission

Put your own age in the box, then RUN.

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.

Variables