Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- count=0
- sum=0.0
- for i in range(1,7):
- n = float(input())
- if(n>0):
- sum = sum + n
- count=count+1
- average = sum/count
- print(count, "valores positivos")
- print("{:.1f}".format(average))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement