This is a video solution to the waterloo CCC problem J3, from 1987 to 2013. The reason I find this such a great problem is because of how you need to pull out each digit of the number. There are lots of ways to do this, but I like the mod, int divide approach. You can find my solution here. https://github.com/PMiskew/contest_pr...