How to realize the factorial of N by using for Loop in php
This article will explain in detail how php uses the for loop to achieve N factorial. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.
Because the factorial of n is 1 times 2 times 3. All the way up to the product of n.
Realize the idea:
1. The initial condition of for loop can be set to iTunes 1, and the restriction condition can be I.