Dim s as long ,x as integer s=0 For x=9to10 Step2 S=s+x Next
1个回答
s在什么情况下等于25?答:在算错的情况下.
如果上面是你全部的代码,执行结果应该是9,而不是25.
相关问题
高一信息科技编程题Dim x As DoubleDim s As Doubles = 0For x = 100 To 9
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
for next 循环s=0for i=1 to 10 step 2s=s+1i=I*2next i当循环变量后,i,s
Dim a(4) s=0 For i=1 to 4 s=s+a(i) Next i
Private Sub Form_Click( ) Dim x As Integer,y As Integer,z As
英语翻译Dim a() As String,b() As String,x1() As String,y1() As S
Private Sub Form_Click() Dim x As Integer Static y As Intege
Dim x,y as Integer y=-2 x=y=-1
已知程序段:s=0 For i =1 to 10 step 2 s = s+1 i = i * 2 Next i 当循环