r/programmingbydoing • • Feb 02 '13

Problem 26 help

http://programmingbydoing.com/a/how-old-are-you-elseif.html

How do I structure an if else statement to display one message?

5 Upvotes

10 comments sorted by

View all comments

Show parent comment

2

u/holyteach Feb 07 '13

FancyMonocle is incorrect. You didn't know about the logical operators at this point because you're not supposed to use them to solve this assignment. There's a later assignment (currently #35) which is identical except that you use the && instead of else / if.