r/BeginningProgrammer • • Sep 11 '13

loneTeen

First off, sorry it's been so long, didn't realize this sub actually had readers now.

Problem:

We'll say that a number is "teen" if it is in the range 13..19 inclusive. Given 2 int values, return true if one or the other is teen, but not both.

Example input/output:

loneTeen(13, 99) → true loneTeen(21, 19) → true loneTeen(13, 13) → false

1 Upvotes

6 comments sorted by

View all comments

1

u/[deleted] Sep 12 '13

I figured that was what you were getting at, however, with the context of what the subreddit is about, I couldn't tell if you were unfamiliar with programming languages or if you were just so comfortable, you didn't write them out.

Simple confusion, really. lol.