Question: Find number list that is n%6 = 0 given list is integer 0 to n. You can only use three function. addOne(), isOdd(), isEven(). For
Find number list that is
n%6 = 0
given list is integer 0 to n.
You can only use three function. addOne(), isOdd(), isEven().
For example, if n = 13
input list is 1 2 3 4 5 6 7 8 9 10 11 12.
Output list is 6, 12.
It is easy with mod operator, but I cannot use it. We can only use addOne(), isOdd(), isEven().
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
