12 回答
TA贡献1条经验 获得超1个赞
for (var i=1; i<=9; i++){
for (var j=1; j<=i; j++){
document.write(i+" * "+j +"="+i*j + " ");
}
document.write("<br/>");
}
TA贡献4条经验 获得超5个赞
for (var i=1; i<=9; i++){
for (var j=1; j<=i; j++){
document.write(i+"*"+j+"="+i*j);
}
document.write("<br/>");
}
TA贡献1条经验 获得超1个赞
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<script>
for (var i=1; i<=9; i++){
for (var j=1; i<=i; j++){
document.write(i+*+j=i*j);
}
document.write("<br/>");
}
</script>
</body>
</html>
TA贡献237条经验 获得超0个赞
TA贡献1条经验 获得超0个赞
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<script>
for (var i=1; i<=9; i++){
for (var j=1; j<=i; j++){
document.write(i+"*"+j+"="+i*j + ",");
}
document.write("<br/>");
}
</script>
</body>
</html>
添加回答
举报