Advertisement
teslariu

mod

Nov 30th, 2021
961
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.43 KB | None | 0 0
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # script que calcula perimetro y superficie de un rectangulo
  5.  
  6. from aritmetica import ingresar_numero as ingresar_lado, suma, producto
  7.  
  8. print("Script que calcula perimetro y superficie de un rectangulo")
  9.  
  10. print("Lado mayor:")
  11. L = ingresar_lado()
  12. print("Lado menor:")
  13. l = ingresar_lado()
  14.  
  15. print(f"Superficie: {producto(L,l)}")
  16. n = suma(L,l)
  17. print(f"Perímetro: {producto(2,n)}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement