id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

L16_nearHundred


APCS Logic 1, Problem 6. 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.


L16_nearHundred(93) → true
L16_nearHundred(90) → true
L16_nearHundred(89) → false

...Save, Compile, Run (ctrl-enter)

public boolean L16_nearHundred(int n) { }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Difficulty: 100 Post-solution available

Copyright Nick Parlante 2017 - privacy