Java SE (28) Chapter 4 Process Control

Process control

effect

Flow control statements are statements used to control the execution order of statements in a program, and statements can be combined into small logic modules that can complete certain functions.

classification

Control statements are divided into three categories: sequence, selection, and loop.
"Sequential structure" represents the logic of "execute a first, then b".
The "conditional judgment structure" represents the logic of "if..., then...".
"Circular structure" represents the logic of "if..., then continue...".

These three basic logical structures support each other, and they together form the basic structure of the algorithm. No matter how complex the logical structure is, they can all be expressed through them. Therefore, any high-level language has the above two structures.

flow chart

Guess you like

Origin blog.csdn.net/wqh101121/article/details/112988445