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

 

jebbert@volusia.k12.fl.us > test2021_09_16_APSLHL_onesPlace
prev  |  next  |  chance

Write a method that returns the ones place from the positive integer input parameter 'num'. For example, if 'num' is 2415319, return 9, since that is the digit in the ones place. Don't forget about MOD! MOD can make this problem easy.


test2021_09_16_APSLHL_onesPlace(42367) → 7
test2021_09_16_APSLHL_onesPlace(532) → 2
test2021_09_16_APSLHL_onesPlace(981) → 1

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

public int test2021_09_16_APSLHL_onesPlace(int num) { }

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

Copyright Nick Parlante 2017 - privacy