Problem 42410. Divisible by 8
Solution Stats
Problem Comments
Solution Comments
-
3 Comments
Richard Blair
on 4 Oct 2017
I don't why this does not pass, case 10 fails, even though this number is not divisible by 8 despite the case saying it does. Furthermore, I pass case 16 which has case 10 referenced but fail case 15 with the same case 10.
Any suggestions please!
James
on 4 Oct 2017
Look *very* carefully at your definition of eightTable, and look at the last three digits of case 10.
Richard Blair
on 6 Oct 2017
Thank James, obvious now that you said it :)
Problem Recent Solvers205
Suggested Problems
-
Determine whether a vector is monotonically increasing
15668 Solvers
-
Find all elements less than 0 or greater than 10 and replace them with NaN
14317 Solvers
-
How many trades represent all the profit?
565 Solvers
-
Mersenne Primes vs. All Primes
338 Solvers
-
181 Solvers
More from this Author139
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!