> 数学 >
一道高一数学循环语句的题
n=5
S=0
Do
S=S+n
n=n-1
Loop While S<10
输出n
n=?
人气:340 ℃ 时间:2020-06-24 08:27:46
解答
第一次执行时S=5,n=4
第二次执行时S=9,n=3
第三次执行时S=12,n=2
输出n,n=2
推荐
猜你喜欢
© 2026 79432.Com All Rights Reserved.
电脑版|手机版