------<a href= "http://www.itheima.com" target= "blank" >java training, Android training, iOS training,. NET training </a>, look forward to communicating with you! -------
Structure and classification of the program
The structure of the program has three types, respectively:
1, sequential structure: A simple program structure, he has a number of sequential steps to perform the processing of the composition.
Program Flow statement 2--Statement 3--....
2, Branch structure: The program encountered some conditions to judge, the process according to whether the conditions are set up by different flows.
Figure Branching Structure
3. Cyclic structure
The cyclic structure is characterized by the repeated execution of a program segment when a given judgment condition is established.
There are three loop statements in the C language for groups
While loop statement, Do-while Loop statement, for Loop statement
Circular structure diagram:
Branch if statement
Syntax if (expression)
{
Statement block
}
If the expression is true, the statement block is executed, otherwise it is not executed.
Dark Horse Programmer---iOS learning log 10