发布网友 发布时间:2022-04-24 12:13
共2个回答
热心网友 时间:2023-10-12 11:13
inputs = []
n = 0
while n < 12:
n += 1
inputs.append(int(input("input integer 1~100:")))
c = 0
for i in inputs:
c += 1
if c % 3 == 0:
print(i)
else:
print(i,",",end="")
even_sum = 0
for i in range(0,len(inputs),2):
even_sum += inputs[i]
print("sum even index numbers:",even_sum)
热心网友 时间:2023-10-12 11:13
说实话,题目没看懂,这是的措辞?