运行代码,输出结果为()#!/usr/bin/enA python3 n=100 sum=0 counter=1 while counter <=n: sum+cou+counter counter+=1 print("1到%d之和为:%d"%(n,sum))
A.1到100之和为.5000 B.1到100之和为.0 C.1到100之和为.2050 D.1到100之和为.5020正确答案B
运行代码,输出结果为()#!/usr/bin/enA python3 n=100 sum=0 counter=1 while counter <=n: sum+cou+counter counter+=1 print("1到%d之和为:%d"%(n,sum))
A.1到100之和为.5000 B.1到100之和为.0 C.1到100之和为.2050 D.1到100之和为.5020正确答案B