"C Language Learning" 03 Loop structure

Source: Internet
Author: User

Directory of this document

    • Characteristics of the cyclic structure
    • While loop
    • Do...while Cycle
    • For loop

Back to Top

First, the characteristics of the circulation structure

Three kinds of structure of the program:

    • Sequential structure: sequential execution of statements
    • Branching structure: Select execution between two optional statement sequences by making a decision (branch)
    • Loop structure: Executes a sequence of statements (loops) repeatedly when a condition is met, usually in conjunction with an array.

Characteristics of a cyclic structure: A program (loop body) that executes repeatedly when a specific condition (cyclic condition) is met

Back to Top

Second, while loop

 

1  while  2   statement 3  }4  //

Back to Top

third, Do...while cycle

Back to Top

Iv. for Loop

Back to Top

"C Language Learning" 03 Loop structure

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.