Problem with this Code
23 Apr 09, 4:28PM
Problem with this Code
Hello,
So the code works great unless you want to try something like n choose k, or n choose 0. At which point the program returns undefined or infinite values instead of the answer 1. Simple if loops will fix it or else consider fixing the factorial sub-function itself.
Login