Trace Table 示例

笙烛

关注

阅读 29

2022-04-13

totalWeight=0
totalNumber=0
Weight=0


while(totalNumber<8):
 Weight=int(input("please input the next Weight:"))
 totalWeight=totalWeight+Weight
 totalNumber=totalNumber+1
 if(totalWeight>640):
  print("Lift overload(Weight),step out.")

print("Lift overload(Number),step out.")

精彩评论(0)

0 0 举报