Traditional Culture Encyclopedia - Traditional stories - There are several traditional process outputs.
There are several traditional process outputs.
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:In ancient times, most people could "light work". Why did you lose it now?
- Next article:Sizing practice in rice rolls
- Related articles
- Which dynasty did the archway originate from?
- Basic Principles of Ancient Gardens in China
- Which is better to sell, a paperback blank room or a blank room?
- I would like to ask about the practice of ordinary sesame cakes, the most common.
- What is circle culture?
- As one of the three major items of fitness, what is its charm?
- Similarities and differences of various programming languages?
- A folk prescription for treating onychomycosis
- China traditional opera may be broken by young people. What are the reasons why young people don't go to the opera?
- Moscow customs! I need it urgently!