- 1
- 0
- 约1.8千字
- 约 16页
- 2019-07-24 发布于江苏
- 举报
基本算法语句1
基础知识回顾与梳理
类型
输入语句
输出语句
赋值语句
含有Else分支的选择语句
格式
类型
没有Else分支的选择语句
当型循环(While语句)
当型循环
(For语句)
直到型循环
(Do语句)
格式
Read x
Print x
变量名←表达式
If 条件 Then
语句1
Else
语句2
End If
If 条件 Then
语句
End If
Do
语句
Until 条件
End Do
While 条件
语名
End While
For I From 初值 To 终值 Step 步长
语句
End For
诊断练习
1、下列语句中:① ② ③ ④ ⑤
其中是赋值语句的为____________
诊断练习
诊断练习
2.根据如图所示的伪代码,当输入分别为2,3时,最后输出的的值是 .
3
【说明】 解决与选择语句有关问题,一般先写出算法所表示的函数关系式.
诊断练习
3.右面是一个求20个数的平均数的程序,在横线上应该填充的语句为
您可能关注的文档
- 2017年秋高中英语 Unit 3 Travel journal Section Ⅲ Learning about Language & Using Language 新人教版必修1.ppt
- 2017年秋高中英语 Unit 3 Travel journal Section Ⅳ Grammar & Writing 新人教版必修1.ppt
- 2017年秋高中英语 Unit 4 Earthquakes Section Ⅱ Warming Up & Reading-Language Points 新人教版必修1.ppt
- 2017年秋高中英语 Unit 4 Earthquakes Section Ⅲ Learning about Language & Using Language 新人教版必修1.ppt
- 2017年秋高中英语 Unit 4 Earthquakes Section Ⅰ Warming Up & Reading-Pre-reading 新人教版必修1.ppt
- 2017年秋高中英语 Unit 5 Nelson Mandela-a modern hero Section Ⅰ Warming Up & Reading-Pre-reading 新人教版必修1.ppt
- 2017年秋高中英语 Unit 5 Nelson Mandela-a modern hero Section Ⅱ Warming Up & Reading-Language Points 新人教版必修1.ppt
- 2017年秋高中英语 Unit 4 Earthquakes Section Ⅳ Grammar & Writing 新人教版必修1.ppt
- 2017年秋高中英语 Unit 5 Nelson Mandela-a modern hero Section Ⅲ Learning about Language & Using Language 新人教版必修1.ppt
- 2017年秋高中英语 Unit 5 Nelson Mandela-a modern hero Section Ⅳ Grammar & Writing 新人教版必修1.ppt
原创力文档

文档评论(0)