(Small edit: didn't handle zero before)
It looks like I might have done a competition that was a bit too easy this time around! We've had a lot of correct answers.
This challenge's winner is sankar06! I'm working on getting you your free certification exam now! Congratulations!
We'll be back with another challenge in the next few months so keep an eye out for the next LV Digest
Here are some of our other entries, all quite different from each other.
Highlight - nice checking that the number is positive with the case structure!
Another different example again, using some best programming practices here with the wait for ms function. Always good to make it a habit!
This was the only VI I checked that properly accounted for the fact that the number 1 can be both 0! and 1!. Something I hadn't considered myself.
Simplest way to find the factorial of a number
In summary, you code is not the "simplest way". It's not even the correct way! 😄
To calculate a factorial, even is the result has tens of thousands of digits, have a look here: