about | help | code help+videos | done | prefs |
lastDigits
Define a function that when passed an integer and the required number of least-significant digits, returns a number containing the required value.
lastDigits(1729, 3) → 729 lastDigits(1729, 10) → 1729 lastDigits(92716174, 6) → 716174 ...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: 3 Post-solution available
Copyright Nick Parlante 2017 - privacy