Created
December 19, 2019 03:07
-
-
Save luisenriquecorona/17002921cc64101c45d2c1431ddbb107 to your computer and use it in GitHub Desktop.
Python1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Programa: rectangulo.py | |
Propósito: Calcula el perímetro y el área de un rectángulo a partir de su altura y anchura. | |
Autor: @soyluiscorona | |
Fecha: 1/1/2020 | |
Petición de los datos (en metros) | |
altura float input | |
anchura float input | |
Cálculo del área y del perímetro | |
área altura anchura | |
perímetro 2 altura 2 anchura | |
Impresión de resultados por pantalla | |
print format perímetro solo dos decimales. | |
print format área |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment