Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- total = 0
- add = 0
- for data in range(6):
- number = float(input())
- if number > 0:
- add += number
- total += 1
- avg = add/total
- print(total,"valores positivos")
- print("%.1f" % avg)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement