<script>
for(var i=1;i<=9;i++)
{
for(var k=1;k<=i;k++)
{
document.write(k+"x"+i+"="+k*i+"\t"+" ")
}
document.write("<br />")
}
document.write("<br />")
document.write("<br />")
for (var i=1;i<=9;i++)
{
for (var k=1;k<=i;k++)
{
document.write(i+"x"+k+"="+k*i+"\t"+" ")
}
document.write("<br />")
}
</script>
时间: 2024-11-06 03:41:10