function fF() {
var i;
var n;
var r = "";
for (i = 1;i < 10; i ++) {
for (n = 1; n <= i; n ++) {
r += i + "*" + n + " ";
}
r += "<br/>";
}
return r;
}
document.write(fF());
</script> {:5_102:} for (var i=1 ; i<10 ; i++){
for (var j=1 ; j<=i ; j++){
document.write(i + "*" + j + "=" + (i*j) + " ");
}
document.write("<br/>");
} nice nice nice nice nice nice nice nice nice nice nice nice ..hhhhhhhhh <script>
for(let i=1;i<=9;++i){
document.write("<br>");
for(let j=1;j<=i;++j){
let s=i*j;
document.write(j+" × "+i+" = "+s+" ");
}
}
</script> {:10_269:} let str = ''
for (let i = 1; i <= 9; i++) {
for (let j = 1; j <= i ; j++) {
str += `${j} * ${i} = ${i*j} `;
}
str += '\n'
}
console.log(str) 666 瞅瞅 see 1 1
学啥语言都要输出乘法口诀表 1 1 1 kank for(var i=0;i<=9;i++){
for(var j=0;j<=i;j++){
document.write(i + '*' + j + '=' + i * j + ' ')
}
document.write('\n')
}
页:
1
[2]