python練習-迴圈:數字加總 ... 利用迴圈直接計算加總,總和為a+a+1+a+2+a+3+. ... c = b d = a s = 0 for i in range(d,c+1): s = s+i print(s)
確定! 回上一頁