Traditional Culture Encyclopedia - Traditional festivals - What is the process?
What is the process?
2. Detailed description of the flow chart:
(1) defines three variables, which are I (for loop counting), M (for saving larger values) and A (for input values).
(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) entering a loop, in which it is first judged whether the loop conditions are compound, if the conditions are met, a new value A is input, the value of A is compared with the previous value of M, and a larger value is assigned to M, and the loop variable I+1; If the condition is not met, the variable m with relatively large value is output to obtain the result.
Simply put, it is the comparison of two numbers, and the large value is saved and finally output.
Extended data:
Flowchart: It is an excellent method to express the idea of algorithm with graphics, 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 method 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 then determine alternative action plans.
The basic structure of the flow chart includes: sequence structure, conditional structure (also called selection structure), cyclic structure and branching structure.
References:
Flowchart _ Baidu Encyclopedia
- Previous article:What is the architectural style of Han Dynasty?
- Next article:Please come in if you really know erhu!
- Related articles
- Special nanowires can be used as transparent electrodes.
- How to describe the beauty of the red wall
- Why is Guilin's landscape a miracle of China?
- Old Beijingers like to drink high-breaking and high-foaming.
- Talking about the problems existing in the bidding of construction projects
- What are the styles of solid wood round back chairs? What are the advantages of solid wood chairs?
- What are the atmospheric pollutants
- What does moral character mean?
- What are the flavors of the average spring roll
- Can Shanxi Baoyuan vinegar be bought?