上一页 1 ··· 4 5 6 7 8
摘要: document.write("九九乘法表:"); document.write("<br>"); for(i = 1; i<10;i++){ for(j = 1; j<=i;j++){ var result = i*j; document.write( j + "*" + i + "=" + result +" " ); } document.write("<br>"); } 阅读全文
posted @ 2012-07-28 10:47 妍珊 阅读(314) 评论(0) 推荐(0) 编辑
摘要: 153/100 (153-1*100)/10 153-1*100-5*10 */ document.write("100---999之间的水仙花数为:"); document.write("<br>"); for(i = 100; i < 1000;i++){ var num1 = Math.floor(i/100); var num2 = Math.floor((i - num1*100)/10); var num3 = Math.floor(i-(... 阅读全文
posted @ 2012-07-28 10:46 妍珊 阅读(1949) 评论(0) 推荐(0) 编辑
摘要: document.write("1000以内的奇数为:"); document.write("<br>"); for(i = 0 ; i<1000; i ++){ if( i % 2 ==1){ document.write( i + " "); } } 阅读全文
posted @ 2012-07-28 10:45 妍珊 阅读(1074) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8