i = 1
sum1 = 0
sum2 = 0
while i <= 100:
if i % 2 == 0:
sum1 += i
else:
sum2 += i
i += 1
sum = sum1 + sum2
print(sum,sum1,sum2)
sum = 0#100内基数和
for i in range(1,100,2):
sum += i
print(sum)
i = 1
sum1 = 0
sum2 = 0
while i <= 100:
if i % 2 == 0:
sum1 += i
else:
sum2 += i
i += 1
sum = sum1 + sum2
print(sum,sum1,sum2)
sum = 0#100内基数和
for i in range(1,100,2):
sum += i
print(sum)