Correction status:Uncorrected
Teacher's comments:
for(i=1;i<=9;i++){ for(j=1;j<=i;j++){ document.write(j+'*'+i+'='+i*j+' '); } document.write('<br/>'); }
点击 "运行实例" 按钮查看在线实例
var i=1; while(i<20){ var j=1; document.write("<div style='text-align:center'>"); while(j<=i){ document.write('*'); j++; } document.write('</div>'); i++; }
点击 "运行实例" 按钮查看在线实例