A=5 B=9 C=7 If A>B then A=B Endif If A>C then A=C Endif Print A
X=inputbox(“请输入X:”) If X>5 then If x<10 then Y=5 else Y=4 endif else Y=3 Endif Print Y
① i=1 s=0 Do while i<=10 s=s+i i=i+1 loop print s ② i=1 s=0 for i=1 to 10 s= s+i next i print s
开始i=9,s=29i=9 s=29 do s=s-i i=i-3 s=s-ii=i-3i>2n输出s,i结束loop while i<=2 print s , i y
相关推荐: