GRADO DECIMO 2025

marzo 13, 2025 josegivo 0 Comments

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    DOCUMENTO DE JOSE LUIS RODRIGUEZ
    <br>
    <!--Esto es para crear cajas de TEXTO-->
    <input type="number" id="Numero1">
    <input type="number" id="Numero2">
    <br>
    <br>
    <p id="Resultado"></p>
    <br><br>
    <!--Esto es para crear BOTONES-->
    <input type="submit" value="*" onclick="Multiplicar()">
    <input type="submit" value="+" onclick="Sumar()">
    <input type="submit" value="-" onclick="Resta()">
    <input type="submit" value="/" onclick="Division()">
</body>
</html>
<script>

function Multiplicar() {
    var Base = document.getElementById("Numero1").value;
    var Base2 = document.getElementById("Numero2").value;
    var R = Base*Base2;
    document.getElementById("Resultado").textContent = R;
}
function Sumar() {
    var Base = document.getElementById("Numero1").value;
    var Base2 = document.getElementById("Numero2").value;
    var R = parseInt(Base)+parseInt(Base2);
    document.getElementById("Resultado").textContent = R;
}
function Resta() {
    var Base = document.getElementById("Numero1").value;
    var Base2 = document.getElementById("Numero2").value;
    var R = Base-Base2;
    document.getElementById("Resultado").textContent = R;
}
function Division() {
    var Base = document.getElementById("Numero1").value;
    var Base2 = document.getElementById("Numero2").value;
    var R = Base/Base2;
    document.getElementById("Resultado").textContent = R;
}



/*
Rectangulo con base de 20 M + 5 M y Altura 30 M
Area = ¿?
Necesito que el programa me diga por un alert
si el Rectangulo es muy grande, grande es
si el rectangulo es mayor a 800 metros cuadrados
*/

</script>

0 comentarios:

ACTIVIDAD BLOG 9°

marzo 06, 2025 josegivo 26 Comments

 


26 comentarios: