1)
s = 0
i = 0
while True:
a = int(input())
if a == 0: break
else:
i += 1
s += a
s = s / i
print(s)
2)
elif a == 7: i += 1
print(i)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
1)
s = 0
i = 0
while True:
a = int(input())
if a == 0: break
else:
i += 1
s += a
s = s / i
print(s)
2)
i = 0
while True:
a = int(input())
if a == 0: break
elif a == 7: i += 1
print(i)