Advertisement
elcocodrilotito

pract1_3

Oct 27th, 2016
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.18 KB | None | 0 0
  1. #Maria Civit y Daniel Bedialauneta
  2. n=0
  3. m=0
  4. c=-1
  5. while n!= "":
  6.     c=c+1
  7.     m=m+float(n)
  8.     n=input("Introduzca un número real: ")
  9. print("La media aritmética es: ",(m/c))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement