Current location - Training Enrollment Network - Mathematics courses - High school mathematics algorithm box
High school mathematics algorithm box
Tip: The picture is wrong. Guess the box with n=99 should be s=99. Now try to do it yourself.

Answer: The algorithm is to calculate 100! (factorial of 100, that is, 1 times 2 times 3 until 100).

Conclusion: Don't be afraid of algorithm problems. Imagine yourself as a computer. Just go through the whole process. It is not enough for modern society to communicate only by knowing natural language.

In addition, when dealing with loop statements, we should grasp the number of loops or the time to exit the loop.