a = [10, 5, 2, 11, 7,6]
c=0
i = 0
while i < len(a):
if a[i] % 2 == 0:
c -= a[i]
else:
c += a[i]
i =i + 1
print(c)
程序执行后,输出的结果是