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

 

davereed@creighton.edu > rangeSize1
prev  |  next  |  chance

rangeSize1() -- You are given two numbers that represent the extremes of a range, and want to determine the size of that range.


rangeSize1(0, 100) → 100
rangeSize1(100, 0) → 100
rangeSize1(0, 0) → 0

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

public int rangeSize1(int num1, int num2) { }

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

Copyright Nick Parlante 2017 - privacy