-
-
Save parzibyte/890d0c43b48c1e5e08070157229669c6 to your computer and use it in GitHub Desktop.
This file contains 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
import math | |
def area_triangulo(base, altura): | |
return base * altura / 2 | |
def area_rectangulo(base, altura): | |
return base * altura | |
def area_rombo(diagonal1, diagonal2): | |
return (diagonal1 * diagonal2) / 2 | |
def area_circulo(radio): | |
return math.pi * radio ** 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment