用while循环计算 1 到 100 的整数和?
回复可见**** Hidden Message *****
sum_of_numbers = 0
counter = 1
while counter <= 100:
sum_of_numbers += counter
counter += 1
print(sum_of_numbers)
sum_of_numbers = 0
counter = 1
while counter <= 100:
sum_of_numbers += counter
counter += 1
print(sum_of_numbers) while sum_of_numbers = 0
counter = 1
while counter <= 100:
sum_of_numbers += counter
counter += 1
print(sum_of_numbers) sum_of_numbers = 0
counter = 1
while counter <= 100:
sum_of_numbers += counter
counter += 1
print(sum_of_numbers) while ++
页:
[1]