5、while循环语句
死循环:while True:
1)
while num<=10:
print(num)
num+=1
2) 计算1到100的和
num=1
i=0
while num<=100:
i+=num
num+=1
print(i)
5、while循环语句
死循环:while True:
1)
while num<=10:
print(num)
num+=1
2) 计算1到100的和
num=1
i=0
while num<=100:
i+=num
num+=1
print(i)