Advertisement
Guest User

Q_1

a guest
Jan 19th, 2017
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.23 KB | None | 0 0
  1. # Questao_1
  2.  
  3. def calcula_media(a, b, c):
  4.     soma = float(a+b+c)
  5.     soma /= 3.0
  6.     return soma
  7.  
  8. x = float(input())
  9. y = float(input())
  10. z = float(input())
  11.  
  12. resposta = calcula_media(x, y, z)
  13. print ("Media: "+str(resposta))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement