From 07756191807517f80341d63305981023d5c24c31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Ortega=20Froysa?= Date: Tue, 26 Apr 2022 20:11:19 +0200 Subject: [PATCH] Use div to store result. --- 1/LMSGI/PromedioNotas/promedio-notas.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/1/LMSGI/PromedioNotas/promedio-notas.html b/1/LMSGI/PromedioNotas/promedio-notas.html index 8104057..a2feed2 100644 --- a/1/LMSGI/PromedioNotas/promedio-notas.html +++ b/1/LMSGI/PromedioNotas/promedio-notas.html @@ -9,20 +9,21 @@ var notaLMSGI = parseInt(document.getElementById("notaLMSGI").value); var notaGBD = parseInt(document.getElementById("notaGBD").value); var avg = (notaISO + notaLMSGI + notaGBD)/3; - alert("La nota media es " + avg); + document.getElementById("result").innerHTML = "

Resultado: " + avg + "

"; }

Calculadora Promedio Notas

-
+





- +
+