Traditional Culture Encyclopedia - Traditional customs - Flowchart is how?
Flowchart is how?
1, the traditional flowchart is shown below:
2, flowchart ideas in detail:
(1) Define three variables, respectively, i (for loop counting), m (to save a relatively large value), a (the value of the input).
(2) Assign a value to the loop variable i.
(3) Input the first number a, assign the value of a to m, initialize the value of m
(4) Enter the loop, in the loop first determine whether the composite loop conditions, if it meets the conditions, input the new value of a, with the value of a and the value of the previous value of m to compare, the larger value is assigned to m, the loop variable i +1; does not meet the conditions of the output to store the storage of the relatively large value of the variable m, to get the result
Simply put, it is a comparison of the two numbers to take the larger value to save, and finally output.
Expanded:
Flow Chart: Using a graphical representation of an algorithm's thought process is an excellent method because a thousand words are better than a picture. Flow charts are used in assembly language and the early BASIC language environment. Relatedly, there is also a PAD diagram, which is extremely useful for either PASCAL or C languages.
Flowcharts are an effective way of revealing and grasping the movement of a closed system. As a diagnostic tool, it can assist in decision-making, allowing managers to know exactly what the problem is, so that alternative courses of action can be identified.
The basic structure of the flowchart: sequential structure, conditional structure (also known as the choice of structure), cyclic structure, branching structure.
References:
- Previous article:Promote how to do online drainage.
- Next article:What are the advantages of traveling by air?
- Related articles
- What are the advantages of UAV mapping? Which brands are doing better in this respect?
- The difference between white-flowered face and Japanese russula
- Muppets changed from 1 to 12 months.
- What are the music appreciation in Liang Zhu?
- What are the top rankings for 3d games?
- What qualities do most promising students have when they grow up?
- How do you get a self-written book published, and how do you usually get paid for the manuscript and royalties?
- What are the historical characteristics of China's national economy?
- Detailed explanation of fire-proof glass curtain wall design
- Where is Zhoushan Yangmei shochu?