Advertisement
adventuretimeh

while in py

Feb 5th, 2020
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.16 KB | None | 0 0
  1. i = 0
  2. max = 5
  3. somma = 0
  4. media = 0
  5. while i < max:
  6.     numero = int(input())
  7.     somma = somma + numero
  8.     i = i + 1
  9. media = float(somma) / max
  10. print(media)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement