题目内容

21 |
4 |
21 |
4 |
分析:正确理解算法语句的含义,根据后面的取值覆盖前面的取值,即可得结论.
解答:解:输入a=3,b=5,则a+b=8赋给a,
∴8-5=3赋给b,
=
赋给b,
=
赋给a
∴输出的值a为
故答案为:
∴8-5=3赋给b,
8-3 |
2 |
5 |
2 |
8+
| ||
2 |
21 |
4 |
∴输出的值a为
21 |
4 |
故答案为:
21 |
4 |
点评:本题考查伪代码,考查学生的阅读能力,正确理解伪代码是关键.

练习册系列答案
相关题目