LÓGICA DA PROGRAMAÇÃO

ELABORAR UM PROGRAMA QUE EXIBA NA TELA A TABUADA DO 1 AO 10 (COM RESULTADO)  

Postado por SOL




CÓDIGO:

<html>
<head>

<title>TABuADA</title>

</head>

<body>

<script type ="Text/Javascript">

var i ,n ;

for (n=1;n<=10;n=n+1)
{


for (i=1;i<=10;i=i+1)
{


document.write(n + "*" + i + "=" + i * n + "<br>");

}
document.write("<br>");
}

</script>
</body>
</html>

This entry was posted on sexta-feira, abril 11, 2008 and is filed under . You can leave a response and follow any responses to this entry through the Assinar: Postar comentários (Atom) .

0 comentários