[填空题] 下列程序段用于计算1到20之间奇数之和与偶数之和。请填空。x = 0:z = 0For i = 0 To 20 Step 2 x = x + i y = i + 1 z = y
20 查阅
[填空题] 下列程序段用于计算1到20之间奇数之和与偶数之和。请填空。
x = 0:z = 0
For i = 0 To 20 Step 2
x = x + i
y = i + 1
z = y + z
Next i
【5】
Print "偶数和="; x
Print "奇数和="; z
参考答案: