Created
May 8, 2014 01:02
-
-
Save samueltcsantos/fb25dc9da65ee5bc01de to your computer and use it in GitHub Desktop.
Algoritmo para calcular a Velocidade Média
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding:utf-8 -*- | |
#------------------------------------------ | |
# Autor: Samuel T. C. Santos | |
# Data: 07/05/2014 | |
# python version-2.x | |
#------------------------------------------ | |
distancia = raw_input("Distancia [km]? ") | |
tempo = raw_input("Tempo [hr]? ") | |
velocidade_media = float(distancia)/float(tempo) | |
print "Velocidade Media = %.2f km/h" % velocidade_media |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment