teslariu

Untitled

Jan 11th, 2021
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.52 KB | None | 0 0
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. #
  4. from geometria import rectangulo
  5.  
  6. """Programa que calcula los mts de alambrado y los kgs de semilla
  7. necesarios para trabajar en un campo rectangular"""
  8. semillas = float(input("Ingrese los kgs de semillas necesarios por m2: "))
  9. largo = float(input("Ingrese el largo del campo: "))
  10. ancho = float(input("Ingrese el ancho del campo: "))
  11.  
  12. totales = rectangulo(largo, ancho)
  13. print(f"Necesito {totales[0]} mts de alambre y {totales[1]*semillas} kgs de semillas para sembrar")
  14.  
Advertisement
Add Comment
Please, Sign In to add comment