题目
题型:江西难度:来源:
![魔方格](http://img.shitiku.com.cn/uploads/allimg/20191031/20191031051748-57406.png)
答案
s=(1+2)×2=6,n=1+2=3,不满足条件n>3,执行循环体;
s=(6+3)×3=27,n=1+3=4,满足条件n>3,退出循环体,
则输出结果为:27
故答案为:27
核心考点
举一反三
A.2 | B.3 | C.4 | D.16 |
![魔方格](http://img.shitiku.com.cn/uploads/allimg/20191031/20191031051744-62736.png)
. |
x |
A.S=S+xn | B.S=S+
| C.S=S+n | D.S=S+
|
![魔方格](http://img.shitiku.com.cn/uploads/allimg/20191031/20191031051738-47690.png)
1 |
2 |
1 |
4 |
1 |
100 |
A.I<=50 | B.I>50 | C.I<=100 | D.I>100 |
![魔方格](http://img.shitiku.com.cn/uploads/allimg/20191031/20191031051734-73908.png)
A.102 | B.410 | C.614 | D.1638 |
![魔方格](http://img.shitiku.com.cn/uploads/allimg/20191031/20191031051730-76349.png)
(1)请完成执行该问题的程序框图;
(2)以下是解决该问题的程序,请完成执行该问题的程序.