Paul's Tutorials - logo1-2If and Else



Reading

Go here:
If and Else
and read through to the end of the section titled "Selection Statements: If and Else".

Extra Reading

Companion Video

Practice

Once you feel comfortable with the above content, complete the following practice programs.

Doors

Give the user the option to open to pick door one or two.

Fate

Give the user the option to drink a yellow potion or a green potion (use a string). Then give the user the option to open to pick door one or two (use an int).


← 1-1 Basics of C++ 1-2 If and Else 1-3 Loops →