s=5 for i 2.6 to 4.9 step 0.6 s=s+1 next i 是怎样解的啊s=5for i 2.6 to 4.9 step 0.6 s=s+1 next i
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/16 11:58:43
s=5fori2.6to4.9step0.6s=s+1nexti是怎样解的啊s=5fori2.6to4.9step0.6s=s+1nextis=5fori2.6to4.9step0.6s=s+1nex
s=5 for i 2.6 to 4.9 step 0.6 s=s+1 next i 是怎样解的啊s=5for i 2.6 to 4.9 step 0.6 s=s+1 next i
s=5 for i 2.6 to 4.9 step 0.6 s=s+1 next i 是怎样解的啊
s=5
for i 2.6 to 4.9 step 0.6
s=s+1
next i
s=5 for i 2.6 to 4.9 step 0.6 s=s+1 next i 是怎样解的啊s=5for i 2.6 to 4.9 step 0.6 s=s+1 next i
s=5
从i=2.6开始,每次i加0.6(直到i>4.9),s加1
如果i>4.9
则停止.
这个结果是9么 亲 我这书上答案是8啊 我算的也是9
i 由 2.6 到 4.9, 每次回圈 i + 0.6 翅 到4.9 或最接近 4.9(少於4.9)便完结回圈
而s开始值是5, 每次回圈 s 加 1, 直到回圈结束
S=9
当验证程序的时候最好的方法是用print 语句,在你的这段程序后面加上print s,print i就可以看到你运行的结果了,s=9,i=5.0这样你就了解你所运算程序了。
s=5 for i 2.6 to 4.9 step 0.6 s=s+1 next i 是怎样解的啊s=5for i 2.6 to 4.9 step 0.6 s=s+1 next i
s=1 for i=1 to 5 step 2 s=s+i endfor s
For i = 2.6 To 4.9 Step 0.6 s = s + 1 Next ivb for循环中计算s 的值
VB执行下列程序:S=5 For I = 2.6 to 4.9 step 0.6 S = S + 1 Next i Print S 求程序运行后的结果!
dim I% ,S% s=0 for I=5 to 1 s=s+i next I print “s=” ; s 怎么看的 dim I% ,S%s=0for I=1 to 5 step -1s=s+inext Iprint “s=”;s 还有这个一起求解释~
s=20 For i=1 to 5 setp2 S=S-i Next i print S 到底怎么个算法?
s=0,for i=1 to 5,for j=1 to i,for k=j to 4,s=s+1,next k,next j,next i,msgbox s,求详解s= 0For i = 1 To 5For j = 1 To iFor k = j To 4 s = s + 1Next k Next j Next iMsgBox sA.4 B.5 C.38 D.40自己算的和四个选项都不一样.
VB编程 s=5 for i=1 to 23step6 s=s+1 next i 执行程序,为啥i的值为25?
s=1 for i=1 to 100 s=s*i endfor s 中的s=1 和s=s*i
free pascal 马鞍数c:array[1..5,1..5] of integer; i,n,y,s:integer;begin y:=0; for n:= 1 to 5 do for i:= 1 to 5 do read (c[n,i]); for n:=1 to 5 do for i:=1 to 5 do begin for s:= 1 to 5 do begin if c[n,i] <= c[n,s] and c[n,i] >= c[s,i] then y:=
Dim a(4) s=0 For i=1 to 4 s=s+a(i) Next i
s = 2 For i = 3.2 To 4.9 Step 0.8 s = s + 1 next i求运行结果为什么 麻烦解释下咯
vb题 s=0:n=5 for i=1 to n s=s+i next i print s;i 结果怎么是15 i怎么不是5啊
pascal编程s=1+3+5+...+n,求s.var s,n,i:integer;beginreadln(n);for i:=1 to ______ doif ______________then s:=s+i;writeln(s);end.
set talk offdime a(7)use xsdas=0for i=3 to 5scatter to as=s+a(7)skipendfors=+str(s)return
free pascal中for语句的具体意思.比如 for i=1 to 100 do s=s+free pascal中for语句的具体意思.比如for i=1 to 100 do s=s+i
14.有如下的Visual Basic程序段:s = 1 For i = 10 To Step -1 s = s * i * (i14.有如下的Visual Basic程序段:s = 1For i = 10 To Step -1s = s * i * (i - 1)Next i若要使语句s = s * i * (i - 1)执行5次,则循环变量i终值应为(A
(1)设有如下的Visual Basic表达式:5 * x^2 - 3 * x - 2 * Sin(a)/3 它相当于代数式【1】 .(2)执行下面的程序段后,s的值为 【2】 .s = 5 For i = 2.6 To 4.9 Step 0.6 s = s+1 Next i (3)在窗体上画一个命令