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.

boolean nearTen(int num) {
return false; // You may need to remove this starter code
}

Related Lessons

Stuck? You may find these lessons helpful: