Re: 我做的樹~大致上也都差不多^^"

看板NTUBA95study作者 (天我被捲毛淹沒了)時間23年前 (2003/01/08 12:28), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串5/5 (看更多)
※ 引述《Superbomber (封B倒數9天)》之銘言: : ※ 引述《VicLee ( Je t'aime)》之銘言: : : <html> : : <head> : : <title>聖誕樹</title> : : </head> : : <body> : : <script language="JavaScript"><!-- : : str=x=prompt("你要幾層聖誕樹?") : : alert("你想要的是"+str+"層聖誕樹!!") : : f=x*2 : : y=1 : : z=x-3 : : e=f : : document.write("<center>") : : for (j=0;j<x;j++) : : { : : for (i=0;i<y;i++) : : {document.write("*")} : : for (i=0;i<f;i++) : : {document.write("<font color='white'>") : : document.write("o") : : document.write("</font>")} : : for (i=0;i<y;i++) : : {document.write("*")} : : f=f-2 0遞減 : ^^^^^^^ : : y=y+2; *遞增 : ^^^^^^^ : 請問這兩個是什麼意思阿?? 沒有好像整個就跑不出來ㄟ.. : 我把他刪掉後..原來的聖誕樹的圖形就只剩兩根棒棒了.. 控制遞減 和遞增的東西 : 也就是 : * * * * : *** *** * * : ***** ***** 變成 * * : * * * * : * * * * : : document.write("<br>") : : } : : for (j=0;j<z;j++) : : { document.write("*") : : for (i=0;i<e;i++) : : {document.write("<font color='white'>") : : document.write("o") : : document.write("</font>")} : : document.write("*") : : document.write("</br>") : : } : : document.write("</center>") : : // --></script> : : </body> : : </html> : 謝謝解答了說.. -- 我喜歡做我想做的事 但是如果我沒有機會 我會試著去喜歡上我現在在做的事 ~~~~我的哲學 ==> 生活以享受為最高目的 -- ※ 發信站: 批踢踢實業坊(ptt.csie.ntu.edu.tw) ◆ From: 140.112.7.59
文章代碼(AID): #-6wZfT7 (NTUBA95study)
討論串 (同標題文章)
文章代碼(AID): #-6wZfT7 (NTUBA95study)