源程序:
num = int(input("input the number of end:"))
sum1 = 0
i = 1
while i <= num:
sum1 = sum1 + i
i = i + 1
print(sum)
运行结果:
源程序:
num = int(input("input the number of end:"))
sum1 = 0
i = 1
while i <= num:
sum1 = sum1 + i
i = i + 1
print(sum)
运行结果:
FastAPI 构建高效的 Python Web
输出
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M