js打印顺序和倒序乘法口诀
来源:互联网 发布:西安金象网络 编辑:程序博客网 时间:2024/06/09 17:31
<!doctype html><html lang="en"> <head> <meta charset="UTF-8"> <meta name="Generator" content="EditPlus®"> <meta name="Author" content=""> <meta name="Keywords" content=""> <meta name="Description" content=""> <title>9*9乘法表</title> </head> <body> <script>function cheng(){//顺序var row=9,//行 i=1, //初始化循环值col=9;//列 for(i;i<=row;i++){ for(var j=1;j<=i;j++){ document.write(j+"*"+i+"="+i*j+" ");}document.write("</br>");}document.write("<hr>");}function reverseCheng(){//倒叙 从9*9开始 var row=9,//初始化行 i=1,col=9;//列for(row;row>=i;row--){ for(var j=row;j<=row&&j>0;j--){ document.write(j+"*"+row+"="+row*j+" "); } document.write("</br>");}document.write("<hr>");}function reverseCheng2(){ //倒叙 1*9开始 var row=9,//初始化行 i=1,//行col=9;//列for(row;row>=i;row--){ for(var j=1;j<=row;j++){ document.write(j+"*"+row+"="+row*j+" "); } document.write("</br>");} document.write("<hr>");}window.onload=function(){ cheng(); reverseCheng2(); reverseCheng();} </script> </body></html>
0 0
- js打印顺序和倒序乘法口诀
- 正序和倒序输出乘法口诀表
- c打印乘法口诀和三角
- java实现乘法口诀和打印菱形
- 乘法口诀打印
- 乘法口诀打印
- 乘法口诀打印
- Python打印乘法口诀
- 打印一个乘法口诀
- 打印乘法口诀表
- 打印乘法口诀表
- 打印乘法口诀表
- 打印乘法口诀表
- 乘法口诀打印
- java 打印乘法口诀
- 打印乘法口诀表
- 打印乘法口诀表
- 打印乘法口诀
- POJ - 1016 - Prime Ring Problem(dfs)
- 苹果ios音频的回声消除处理
- [读书笔记]Android中Animation的Interpolator插值器详解(图文)
- h5环信保存离线的音频问题
- iOS开发-清理缓存功能的实现
- js打印顺序和倒序乘法口诀
- android 或者java中使用四舍五入的方法
- Codeforces Round #370 (Div. 2)
- chrome调试js的小技巧
- 使用 WSDL 2.0 描述 REST Web 服务
- opencv直方图均衡化算法及实现
- tomcat无法进入管理应用
- HDU1102-Constructing Roads
- 第一阶段学习总结.章一至章六