제목 : 예제. 30.for문_구구단출력.htm
<HTML>
<HEAD>
<TITLE></TITLE>
</HEAD>
<BODY>
<SCRIPT language="javascript">
for (i = 2; i < 10; i++)
{
for (j = 1;j < 10;j++)
{
document.write(i+" * "+j+" = "+i*j+" ")
if (j==9)
{
document.write("<br><br>")
}
} //안쪽 for문 끝.
} //바깥쪽 for문 끝.
for(i = 2; i < 10; i++)
{
for(j = 1; j < 10; j ++)
{
document.write(i + " * " + j + " = " + i * j + "<br>");
}
document.write("<br>");
}
</SCRIPT>
</BODY>
</HTML>