返回列表 發帖
  1. s=0
  2. n=1
  3. while(n<=10):
  4.     s+=n
  5.     n+=1
  6. print("1+2+3+...+10={}".format(s))
複製代碼

TOP

返回列表