第六次作业

第六次作业

这个作业属于哪个课程 https://edu.cnblogs.com/campus/sdscfz/SF4
这个作业的要求在哪 https://edu.cnblogs.com/campus/sdscfz/SF3/homework/12955
这个作业的目标 第六次作业-循环语句输出99乘法口诀表

html

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script src="./ch08.js"></script>
</body>
</html>

js

for(var i=1;i<=9;i++){
for(var j=1;j<=i;j++){
for(var o=0;o<=i;o++){
document.write('&nbsp');
} 
document.write(i+'*'+j+'='+(i*j)+'&nbsp');
}
document.write('<br>');
}

posted @ 2023-04-05 16:17  吴松涛  阅读(22)  评论(0)    收藏  举报