Go here:
If and Else
and read through to the end of the
section titled "Selection Statements: If and Else".
Once you feel comfortable with the above content, complete the following practice programs.
Give the user the option to open to pick door one or two.
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 → |