jsは99乗算表を書きます

316 ワード

方法1:
for(var i=1;i<=9;i++){
 document.write("
"); for(var j=1;j<=i;j++){ sum = i*j; document.write(i,"*",j,"=",sum," "); } }
方法二:
for(var i =1;i<10;i++){
let a = '';
 for(var j=1;j