Skip to content

Commit

Permalink
Python - Curso V2 - Solución Ejercicio 4.5
Browse files Browse the repository at this point in the history
Python Curso V2: 25 Ejercicio 4.5 - Calcular el Área de un Triángulo Dadas la Base y la Altura.
  • Loading branch information
Fhernd committed Feb 13, 2020
1 parent 81ee628 commit 764a696
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions parte04/ex4.5_area_triangulo.py
@@ -0,0 +1,10 @@
'''
Ejercicio 4.5: Calcular el área de un triángulo dadas la base y la altura.
'''

base = float(input('Digite la base del triángulo: '))
altura = float(input('Digite la altura del triángulo: '))

area = base * altura / 2

print('El área del triángulo es igual a {}.'.format(area))

0 comments on commit 764a696

Please sign in to comment.