Solve: Near Hundred
Imported By: Geoffrey Challen
/ Version: 2021.3.0
Given an int
n, return true
if it is within 10 of 100 or 200.
Note: Math.abs(num) computes the absolute value of a number.
For this problem we're expecting only a method.
Don't define a class, include modifiers like static or public, add import statements, or add code outside the method declaration.boolean nearHundred(int n) {
return false;
}