Kotlinlearncs.online LogoJava
Return to List

Solve: Near Hundred

Imported By: Geoffrey Challen
/ Version: 2021.3.0

Given an int n, return true if it is within 10 of 100 or 200. Note: Math.abs(num) computes the absolute value of a number.

boolean nearHundred(int n) {
return false; // You may need to remove this starter code

Related Lessons

Stuck? You may find these lessons helpful: