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

 

sspiege3@schools.nyc.gov > numEnds3
prev  |  next  |  chance

You are given one param int limit The method numEnds3 will return the amount of #s ending in 3 between 1 and limit inclusive. For example, if the limit is 20, the method will return 2 because there are 2 ints between 1 and 20 that end with a 3 (3, 13)


numEnds3(3) → 1
numEnds3(10) → 1
numEnds3(13) → 2

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

public int numEnds3(int limit){ }

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

Copyright Nick Parlante 2017 - privacy