<html>
<head>
<script type="text/javascript">
function Mostrar_Temperaturas(temperaturas){
var f,c;
document.write('<table border="1" style="text-align:center;margin: 0 auto;">');
for(f=0;f<=2;f++){
document.write('<tr>');
for(c=0;c<=2;c++)
document.write('<td>'+temperaturas[f][c]+'</td>');
document.write('</tr>');
}
document.write('</table>');
}
var temperaturas=new Array(new Array(12,10,11), new Array(5,0,2),new Array(10,8,10));
Mostrar_Temperaturas(temperaturas);
</script>
</head>
<body>
</body>
</html>
No hay comentarios:
Publicar un comentario