x = 15 s = 0 Do While x

问题描述:

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

S=15+16+17+18+19+20+21+22+23
=171
X=24
所以Print s,x,结果:
171,24帮忙改为for语句,谢谢x = 15s = 0 for (x