How do I get a number's factorial?

I'm trying to get a button to work where whenever it's clicked it takes a text box number and gets its factors and multiplies them all together. Ex: if 5 was entered then the label would display 120.

2 Likes