| about | help | done | prefs | create account |
Java > Logic-1 > in1To10
prev | next | chance
| Given a number n, return true if n is in the range 1..10, inclusive. Unless "outsideMode" is true, in which case return true if the number is less or equal to 1, or greater or equal to 10.
in1To10(5, false) → true in1To10(11, false) → false in1To10(11, true) → true ...Save, Compile, Run See also Java Example Code. Java help docs: If Boolean Logic | Strings | While and For Loops | Arrays and Loops |
Forget It! -- delete my code for this problem
New just for fun
Random User Progress Graphs
Random Epic Graphs
121.0
Copyright Nick Parlante 2006-11 - privacy