about | help | code help+videos | done | prefs |
test2021_09_16_APSLHL_onesPlace
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) |
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