1, the Role of program flowchart
Program flowchart of the Action Program flowchart of the role of program flowchart is a description of the method, idea or algorithm to solve the problem.
Advantages of Flowchart:
(a) The use of simple symbols, simple descriptive;
(b) Clear structure and strong logic;
(c) Easy to describe and easy to understand.
2, the flowchart uses the symbol
Three cycles of flowchart drawing:
The three commonly used loops in C programming are for (;;), while and Do-while.
1. For loop
For loop form: for (expression 1; expression 2; expression 3)
Flow chart:
Figure 1 For Loop flowchart
2. While loop
While loop form:
while (judging condition)
{
Execute the statement;
}
Flow chart:
Figure 2 While loop flowchart
3. Do-while Cycle
Do-while Cycle form:
Do
{
Execute the statement;
}while (conditional judgment)
Do-while Cycle Flowchart:
Figure 3 Do-while Cycle flowchart
Program Flowchart Drawing Review