S← 1For I from 1 to 9 step 2S←S + IEnd forPrint S
3个回答
26
循环5次(I=1、3、5、7、9)
S各加5次I
1+1+3+5+7+9=26
相关问题
s=1 for i=1 to 5 step 2 s=s+i endfor s
s=0 For i=1 to 10 step 2 s=s+i Next Print s
For i = 2.6 To 4.9 Step 0.6 s = s + 1 Next i
s=0 For i=1to 10 step 2 s= s+1 i=i*2 变量S等于什么啊 为什么
for next 循环s=0for i=1 to 10 step 2s=s+1i=I*2next i当循环变量后,i,s
高一不难的算法题求下列伪代码输出的结果S=1For I From 1 To 5 Step 2S=S+S*IPrint S
已知程序段:s=0 For i =1 to 10 step 2 s = s+1 i = i * 2 Next i 当循环
关于for语句循环次数For i From 1 to 2 Step2 循环几次?For i From 7 to 90 S
14.有如下的Visual Basic程序段:s = 1 For i = 10 To Step -1 s = s * i
求1-2+3-4+5-6+.+99-100的值 s=0 for i=1 to 99 step 2 s=s+_______