<html>
<head>
<script type="text/javascript">
n=parseInt(prompt("15"," "));
tabla="<table border='1'>";
for(i=1;i<=20;i++)
{
tabla+="<tr>"+"<td>"+(n*i)+"</td>"+"<td>"+"/"+"</td>"+"<td>"+n+"</td>"+"<td>"+"="+"</td>"+"<td>"+i+"</td>"+"</tr>"
}
tabla+="</table>";
document.write(tabla);
</script>
</head>
</html>
No hay comentarios:
Publicar un comentario