第六次作业
| 这个作业属于哪个课程 | https://edu.cnblogs.com/campus/sdscfz/SF3/ |
|---|---|
| 这个作业要求在哪里 | https://edu.cnblogs.com/campus/sdscfz/SF3/homework/12955 |
| 这个作业的目标 | 第6次作业-循环语句输出99乘法口诀表 |
<html>
<meta charset="utf-8">
<head>
<title>乘法口诀表</title>
<body>
<script src="./3.js"></script>
</body>
</head>
</html>
for (var a = 1; a <= 9; a++) {
for(var b=0; b<=a;b++){
document.write(' ')
}
for (var c = 1; c <= a; c++) {
document.write(c + "*" + a + '=' + a * c + ' ')
if (a == c) {
document.write("<br/>")
}
}
}

浙公网安备 33010602011771号