Solve: Less 20
Imported By: Geoffrey Challen
/ Version: 2021.6.0
Return true
if the given non-negative Int
is 1 or 2 less than a multiple of 20.
So for example 38 and 39 return true
, but 40 returns false
.
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 less20(n: Int): Boolean {
return false
}