|
Andrid
Wordy Bastard
692 Posts |
Posted - 03/27/2003 : 20:55:04
|
if you do can you help me with this program... it's supposed to average some numbers... thanks for your time
x="first" sum=0.0 g=0 while x=!"end": x=input("what are the numbers? type end when done") b=float(x) sum=sum+b g=g+1 def avg(sum,g):return sum/g print avg(sum,g) b=input("type anything to end")
|
|