print("********App5********")       
count = 0
sum =0
number = 1
print("Enter 0 to exit the loop")
while(number!=0):
    number=float(input("Enter a number: "))
    if number!=0:
        count = count+1
        sum = sum+number
    if number ==0:
        print("The average was ", sum/count)