From 67ce26dd866175f114806b2f8e89b6992d86d50e Mon Sep 17 00:00:00 2001 From: JoseBaezx Date: Thu, 5 May 2022 17:03:28 -0400 Subject: [PATCH] dados final 1.0 --- ejercicio1.js | 5 +---- index.html | 2 ++ 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/ejercicio1.js b/ejercicio1.js index 0b16f09..f428a06 100644 --- a/ejercicio1.js +++ b/ejercicio1.js @@ -3,10 +3,7 @@ // (-b + sqrt(b^2 - 4ac))/2a // Entrada: a, b, c Salida: raiz cuadrĂ¡tica (+) function ecuacion(a,b,c){ - let resultado; - resultado= (b + Math.sqrt(Math.pow(b,2)-4*a*c))/(2*a) - - console.log(resultado) + return (-b + Math.sqrt(Math.pow(b,2)-4*a*c))/(2*a) } ecuacion(4,-64,2) diff --git a/index.html b/index.html index 6b9eaf3..bd3968a 100644 --- a/index.html +++ b/index.html @@ -20,6 +20,8 @@ + + -- libgit2 0.26.0