Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- # -*- coding: utf-8 -*-
- #
- # script que calcula perimetro y superficie de un rectangulo
- from aritmetica import ingresar_numero as ingresar_lado, suma, producto
- print("Script que calcula perimetro y superficie de un rectangulo")
- print("Lado mayor:")
- L = ingresar_lado()
- print("Lado menor:")
- l = ingresar_lado()
- print(f"Superficie: {producto(L,l)}")
- n = suma(L,l)
- print(f"Perímetro: {producto(2,n)}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement