求1-2+3-4+5-6+.+99-100的值 s=0 for i=1 to 99 step 2 s=s+_________ next i print s 那横线上要怎
问题描述:
求1-2+3-4+5-6+.+99-100的值 s=0 for i=1 to 99 step 2 s=s+_________ next i print s 那横线上要怎
答
应该是这样吧
Dim s As Integer
s = 0
For i = 1 To 100 Step 2
s = s - 1
Next