about | help | code help+videos | done | prefs |
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) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 220
Copyright Nick Parlante 2017 - privacy