Solve: Near 10
Imported By: Geoffrey Challen
/ Version: 2021.6.0
Given a non-negative int
, return true
if it is within 2 of a multiple of 10.
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 nearTen(int num) {
return false;
}