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

 

byFives


Return all the numbers from 1 to max that are divisible by 5. So 24 would be 5101520


byFives(24) → "5101520"
byFives(145) → "5101520253035404550556065707580859095100105110115120125130135140145"
byFives(66) → "5101520253035404550556065"

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

public String byFives(int max){ }

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

Copyright Nick Parlante 2017 - privacy