Lab #7 - Task 2
Stephan Knotek
Task 2 - if ... else Statement
- Designate a variable for pineapple and align the value with your preference about whether or not you like pineapple on pizza.
- Write an if ... else statement for the following:
If pineapple is equal to the string value "yes" then display "Pineapple on pizza is amazing!" otherwise
display, "Yuck! Pineapple does not belong on pizza."
(Hint: Be sure to wrap the line you are displaying in paragraph tags, or use a line break or horizontal rule at the end of each line or everything will run together.)
Yuck! Pineapple does not belong on pizza.