Skip to content

Commit

Permalink
Python - Curso V2 - Ejercicio 6.5
Browse files Browse the repository at this point in the history
Python Curso V2: 168 Ejercicio 6.5 Calcular el Valor Discriminante de una Expresión Cuadrática.
  • Loading branch information
Fhernd committed Mar 16, 2020
1 parent d7af0fc commit b1649ef
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions parte06/ex6.5_discriminante_ecuacion_cuadratica.py
@@ -0,0 +1,9 @@
# Ejercicio 5. Calcular el valor discriminante de una expresión cuadrática.

a = 1
b = 0
c = -1

discriminante = b**2 - 4*a*c

print('Discriminante:', discriminante)

0 comments on commit b1649ef

Please sign in to comment.