# 计算1-10的数值总和
num = 0
result = 0
while num < 10:
num += 1
result += num
print(result)
8python中whlie循环,# 计算1-10的数值总和
最新推荐文章于 2024-08-29 15:38:20 发布
# 计算1-10的数值总和
num = 0
result = 0
while num < 10:
num += 1
result += num
print(result)