The simplest C selection statement is the one-way if statement.
举一反三
- The loop body in a loop statement is allowed to contain more than one statement, which can not appear as a compound statement.
- The body of a while loop can contain at most one "break" statement and at most one "pass" statement.
- Which of the following statements about break statements is incorrect? A: A break statement can appear in an if statement and is used to end the if statement. B: A break statement can appear in a loop statement or a switch statement. C: A break statement can be used to exit a switch statement. D: Multiple break statements can appear in the loop body of a loop statement.
- Translate the following sentence into Chinese."A profit statement is also known as a profit and loss statement, an income statement, an income and expense statement or an operating statement."
- 7.In this logic structure, one program statement follows another. A: Sequential B: Selection C: Loop D: Random