x = 15 s = 0 Do While x x = 15s = 0Do While x

来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/26 02:22:00
x=15s=0DoWhilexx=15s=0DoWhilexx=15s=0DoWhilexx=15s=0DoWhilexx=15s=0DoWhilexx=15s=0DoWhilexS=15+16+17

x = 15 s = 0 Do While x x = 15s = 0Do While x
x = 15 s = 0 Do While x
x = 15
s = 0
Do While x

x = 15 s = 0 Do While x x = 15s = 0Do While x
S=15+16+17+18+19+20+21+22+23
=171
X=24
所以Print s,x,结果:
171,24

x = 15
s = 0
Do While x <= 23
s = s + x
x = x + 1
Loop Print s, x。

搞清这是当循环。s=15+16+17+.......+23=171,x=23+1=24.望采纳