Appearance
3.7 Nested Conditionals 嵌套条件语句
The way statements are sequenced and combined in a program determines the computed result. Programs incorporate iteration and selection constructs to represent repetition and make decisions to handle varied input values.
- 程序中语句的排序和组合方式决定了计算结果。程序结合迭代和选择结构来表示重复并做出决策来处理各种输入值。
核心要点 Core Points
- Nested conditional statements consist of conditional statements within conditional statements.
- 嵌套条件语句由条件语句内的条件语句组成。
学生活动 Student Activities
- For nested selection:
- 对于嵌套选择:
- Write nested conditional statements.
- 编写嵌套条件语句。
- Determine the result of nested conditional statements.
- 确定嵌套条件语句的结果。
相关资源 Related Resources
- AP CSP Exam Reference Sheet (see Appendix)
- AP CSP考试参考表 (见附录)
