Traditional Culture Encyclopedia - Traditional culture - What is a traditional flowchart?
What is a traditional flowchart?
1. The traditional flow chart is shown in the following figure:
2. Detailed explanation of the flow chart:
(1) Define three variables, namely I (for cycle counting), M (for saving a relatively large value) and A (for entering a value).
(2) assign a value to the loop variable I.
(3) Input the first number A, assign the value of A to M, and initialize the value of M
(4) Enter the loop, and first judge whether the loop condition is compounded in the loop. If it meets the condition, input a new value A, and compare the value of A with the previous value of M. The larger value is assigned to M, and the loop variable I+1; If it doesn't meet the requirements, the variable m with a relatively large value is output, and the result is obtained
. Simply put, two numbers are compared, the larger value is saved, and finally output.
Extended information:
Flow Chart: It is an excellent method to use graphics to express the idea of algorithm, because a thousand words are not worth a picture. Flowchart has been applied in assembly language and early BASIC language environment. There is also a related PAD diagram, which is very suitable for PASCAL or C language.
Flowchart is an effective way to reveal and master the motion state of closed system. As a diagnostic tool, it can assist decision-making, let managers know clearly where the problem lies, and thus determine the alternative action plan.
the basic structure of the flow chart includes: sequence structure, conditional structure (also called selection structure), cyclic structure and branching structure.
Reference: Flowchart _ Baidu Encyclopedia
- Related articles
- Top Ten Famous Flowers in China? What kinds of plants do the "four gentlemen" in flowers refer to? Five kinds of cut flowers in the fresh cut flower market, their flower language and meaning?
- What's the difference between bow, arrow and crossbow?
- How does the Internet subvert the industrial model?
- Introduction to boys' free naming skills
- What plays are there in Beijing Opera?
- Ten articles summarizing class activities
- The Student Party's Necessary APP for Improving Artistic Aesthetic Ability
- What are the dramas in Guangxi
- Method for making bowl cake
- Severe Insomnia