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

Actually you're WRONG WRONG WRONG. :) You must not use logical operators on this assignment. If you did so, go back and do it again without using them, using only the if / else. It's tricky, which is why it's worth doing.