题目描述;键入5个数,求其平均值。
total = 0
for i in range(0,5):
a =float(raw_input('please input number %d:' %(i+1)))
total = total + a
print 'the average is %f' %(total/5)
题目描述;键入5个数,求其平均值。
total = 0
for i in range(0,5):
a =float(raw_input('please input number %d:' %(i+1)))
total = total + a
print 'the average is %f' %(total/5)