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.fun nearTen(num: Int): Boolean {
return false
}