以下for语句结构中,()不能完成1~10的累加功能。()
(A)For i in range(10,0):total +=i
(B)For i in range(1,11):total +=i
(C)For I in range(10,0,-1):total +=i
(D)For I in range(10,9,8,7,6,5,4,3,2,1):total +=i
参考答案
继续答题:下一题
(A)For i in range(10,0):total +=i
(B)For i in range(1,11):total +=i
(C)For I in range(10,0,-1):total +=i
(D)For I in range(10,9,8,7,6,5,4,3,2,1):total +=i