about | help | code help+videos | done | prefs |
Given a non-negative number "num", return true if num is within 2 of a multiple of 10. Note: (a % b) is the remainder of dividing a by b, so (7 % 5) is 2. See also: Introduction to Mod nearTen(12) → true nearTen(17) → false nearTen(19) → true ...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: 124.0
Copyright Nick Parlante 2017 - privacy