PRIMER DIA DE CLASE

Febrero 1 del 2017

Se retoma el tema de javascript, y realizamos este ejercicio:

<html>
<head>
<title>csmscho</title>
</head>
<script>
function sumar(){
var a=parseInt(prompt("a"));
var b=parseInt(prompt("b"));
alert(a+b);
}
</script>
<body>
<input type="button"
onclick="sumar()"value="oprimir">
</body>
</html>

Comentarios

Entradas más populares de este blog

Ejercicios de DFD Y CICLO FOR

Ejemplos de Ciclo for y FIBONACCI

CONTINUACIÓN DFD