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

 

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

Write a method that returns the least significant digit of the input parameter 'num'. For example if 'num' is 783 return 3. As a precondition, you may assume that 'num' is a positive integer.


test2020_12_10_APP1SLHL_leastSigDig(786) → 6
test2020_12_10_APP1SLHL_leastSigDig(18) → 8
test2020_12_10_APP1SLHL_leastSigDig(81) → 1

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

public int test2020_12_10_APP1SLHL_leastSigDig(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