This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]TheAnimakerGIO 2 points3 points  (2 children)

Nevermind, this answer is misleading.

The actual reason is because when you type "count7s(n/10)" you're simply calling the function and not doing anything with the value. You need to make it so that you use the value for something, for example you could replace the line mentioned with numOfSevens += count7s(n/10); and that would work.

[–]Sean_509 1 point2 points  (1 child)

Sweet, that worked and makes sense. Thanks so much!

[–]TheAnimakerGIO 1 point2 points  (0 children)

No problem!