teslariu

pruebab

Aug 27th, 2021
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.37 KB | None | 0 0
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # script que calcula la velocidad promedio de un móvil. Se le pide al
  5. # usuario la distancia y el tiempo y se calcula la velocidad
  6.  
  7. distancia = int(input("Ingrese la distancia recorrida en kms: "))
  8. tiempo = int(input("Ingrese el tiempo en hs: "))
  9.  
  10. velocidad = distancia / tiempo
  11.  
  12. print(f"Velocidad: {velocidad} km/h")
Advertisement
Add Comment
Please, Sign In to add comment