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

 

amjadm@miamioh.edu assignmentiii > checknums
prev  |  next  |  chance

Given a number n, return true if n is in the range of [star-end] and check is true, inclusive.
If check is false, return true if the number is less than star, or greater than end.


checknums(2, 1, 10, true) → true
checknums(0, 1, 10, true) → false
checknums(10, 9, 10, true) → true

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

public boolean checknums(int n, int start, int end, boolean check) { }

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: 105

Copyright Nick Parlante 2017 - privacy