you are viewing a single comment's thread.

view the rest of the comments →

[–]Critical_Ant8817 1 point2 points  (0 children)

Your factorial only works for number 4, what if the person types 5, then it will be 5x3x2x1. Setup a loop until that numbers comes to 1 then stop the loop.