Traditional Culture Encyclopedia - Traditional festivals - Comparison between ab size and traditional process
Comparison between ab size and traditional 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:How to introduce China's traditional cuisine in English?
- Next article:The Determining Role of Business Boundaries
- Related articles
- Business model of community convenience store
- Why gypsum is used to make bean curd
- Shaxian snack production techniques to be included in the non-heritage, into the list of non-heritage has a very important significance for these traditional cultures?
- Crystal lamp brand recommendation crystal lamp how to choose
- What are the five elements of the ancient dynasties in China? For example, in the Han Dynasty, fire was called Han Yan.
- What is the spirit of the Winter Olympics?
- Strong-willed stories (3, summarized in 50 words each)
- Great gods, are the flower arms black and gray or colored? It's tangled
- The benefits and significance of reading classics
- Develop characteristic industries according to local conditions (new countryside)