#129. nearTen
nearTen
Background
Description
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
Format
Input
Output
Samples
12
true
17
false
19
true
Limitation
1s, 1024KiB for each test case.