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

 

orion.a.smith@gmail.com apcsa-loops > apcsaLoopsConcatExclusiveAscending
prev  |  next  |  chance

Given two numbers a and b, build a String that contains every number from a to b, exclusive. Precondition: a + 1 < b for all inputs.


apcsaLoopsConcatExclusiveAscending(1, 3) → "2"
apcsaLoopsConcatExclusiveAscending(1, 5) → "234"
apcsaLoopsConcatExclusiveAscending(3, 10) → "456789"

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

public String apcsaLoopsConcatExclusiveAscending(int a, int b) { }

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

Copyright Nick Parlante 2017 - privacy