Program Flowchart Drawing Review

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.