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

 

amjadm@miamioh.edu assignment3 > isAcceptable
prev  |  next  |  chance

int value 6 is acceptable since it's the sum of all numbers from 1-3: 1+2+3 = 6. 7 is not acceptable because sum of all numbers from 1-4 is 10. Return true if a number is acceptable, otherwise false.


isAcceptable(0) → true
isAcceptable(3) → true
isAcceptable(7) → false

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

public boolean isAcceptable(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: 115

Copyright Nick Parlante 2017 - privacy