求1-2+3-4+5-6+.+99-100的值 s=0 for i=1 to 99 step 2 s=s+_________ next i print s 那横线上要怎

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/11 03:04:58

求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 那横线上要怎

求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