Skip to content

Instantly share code, notes, and snippets.

@pablovv72
Created November 16, 2018 19:55
Show Gist options
  • Save pablovv72/adfe4a863a7103bce7b0987b3c11e613 to your computer and use it in GitHub Desktop.
Save pablovv72/adfe4a863a7103bce7b0987b3c11e613 to your computer and use it in GitHub Desktop.
# Diseñe un algoritmo que calcule cuantos lotes de X mts. salen de X hectareas
while True:
metros_cuadrados = int(input('Número de hectareas: ')) * 10000
if metros_cuadrados == 0:
break
lote = int(input('Metros cuadrados por lote: '))
print(f'salen {int(metros_cuadrados / lote)} lotes.')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment