(单选题, )
下面代码的输出结果是( )
Sum=0
For i in range(0,100):
if i%2==0:
sum-=i
else:
sum+=i
Print(sum)
A.-50 B.49 C.50 D.-49正确答案C
(单选题, )
下面代码的输出结果是( )
Sum=0
For i in range(0,100):
if i%2==0:
sum-=i
else:
sum+=i
Print(sum)
A.-50 B.49 C.50 D.-49正确答案C