Kotlinlearncs.online LogoJava
Return to List

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.

fun nearTen(num: Int): Boolean {
return false // You may need to remove this starter code

Related Lessons

Stuck? You may find these lessons helpful: