| about | help | done | prefs | create account |
Warmup-1 > nearHundred
prev | next | chance
| Given an int n, return true if it is within 10 of 100 or 200. Note Math.abs(n) returns the absolute value of a number.
nearHundred(93) → true nearHundred(90) → true nearHundred(89) → false ...Save, Compile, Run See Also: Example Code Java help: If Boolean Logic | Strings | While and For Loops | Arrays and Loops |
Forget It! -- delete my code for this problem 121.0
Copyright Nick Parlante 2006-09 - privacy