Untitled

mail@pastecode.io avatar
unknown
plain_text
2 months ago
238 B
2
Indexable
Never
c=0
s=0
i=1

while(i==1):
    a=int(input("enter a no."))
    b=int(input("enter a frequecy"))
    s=s+b
    c=c+1
    i=int(input("do u wish to enter more no.? if yes enter 1 else any other digit to quit="))
print("mean=",s/c )
Leave a Comment