乘法口诀

    科技2024-11-06  8

    在网页中嵌入使用JavaScript程序打印出九九口诀

    <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>九九乘法表</title> <script type="text/javascript"> for(var i=0; i<=9; i++){ for(var j=1; j<=i; j++){ document.write(i+"*"+j+"="+i*j+" "); } document.write("<br>"); } </script> </head> <body> </body> </html>

    运行效果:

    Processed: 0.019, SQL: 8