martes, 7 de febrero de 2017

FEBRERO 1 DEL 2017

EJERCICIO

<html>

<head>
<title>ejercicio</title>
</head>

<script>
function sumar(){
var a = parseInt(prompt("a"));
var b = parseInt(prompt("b"));
alert(a+b);
}
sumar();
</script>

<body>
<input type="button" onclick="sumar()" value="oprimir">
</body>

</html>

No hay comentarios.:

Publicar un comentario