Traditional Culture Encyclopedia - Traditional culture - How to draw the process, is there any rule?
How to draw the process, is there any rule?
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 idioms are there to describe superb cooking?
- Next article:Characteristics of Chinese Decoration
- Related articles
- Is GDP and treasury money the same concept?
- How to explain the word culture in Guangxi? Why is there the word culture?
- Children's study desk design flaws
- Characteristics of Marriage Custom in Yichun, Jiangxi Province
- What kind of snake is a MediaTek python?
- Where is Tesla's navigation?
- Bean sprouts are expensive in Japan; how are they grown using ancient cultivation methods?
- Spanish architecture: the witness of history and culture
- What is foreign trade? And how to do foreign trade well?
- What are legal holidays and their dates?