I was going for a simpler approach of hard-coding a starting divisor (say, 1,000,000,000), since this is such a beginner class. However, c99tutorials method is just as easy (easier?) and more...
Type: Posts; User: anduril462
I was going for a simpler approach of hard-coding a starting divisor (say, 1,000,000,000), since this is such a beginner class. However, c99tutorials method is just as easy (easier?) and more...
No, don't use mod 0 or mod 3. Think about your approach and try it out before you start coding. No point in writing code if you aren't pretty sure it will work. Did you try it out at all, in a...
Have you learned recursion yet, as part of your functions lesson? If so, there is a slick way to do it with recursion. If not, you can do it with loops.
This is a great problem solving...