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

 

abraskin@mbusd.org > leastSigDigitsAtoB
prev  |  next  |  chance

Return a String that concatenates the least significant digit of even numbers and the second least significant digit of odd numbers, if there is one, of all the numbers from the parameter a to b (inclusive).


leastSigDigitsAtoB(0, 10) → "024680"
leastSigDigitsAtoB(8, 12) → "8012"
leastSigDigitsAtoB(-3, 2) → "202"

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

public String leastSigDigitsAtoB(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: 200 Post-solution available

Copyright Nick Parlante 2017 - privacy