Lessons
C++ · Making Decisions · 11. if / else
step 1 of 7
A fork in the road
if asks a question. When the answer is true, I run the code in its { }. When it is false, I skip it.
Mission
Change temp so I print the ice cream line too.
PIP·1
main.cppyour code
1
2
3
4
5
6
7
8
9
10
11
← press me!
Press RUN to see what this program does.