※ 引述《redshirt (WiNteRcoMesAroUNdAgaiN)》之銘言:
: 目的何在阿
: 我不知道你要做啥
: ※ 引述《VicLee ( Je t'aime)》之銘言:
: : <html>
: : </head>
: : <body>
: : <script>
: : x=prompt("number?")
: : j=0
: : document.write("1,")
: : ^^^^^^^^^^^^^^^^^^^^純硬幹
: : for (i=2;i<=x;i++)
: : ^^^^^^^^^^^^^^^^^^同上
: : {i=i+j
: : j=j+1
: : document.write(i+",")}
: : </script>
: : </body>
: : </html>
: : 請問如何改成正確的呢?
: : 感謝不盡
他不是要跑那個1,2,4,7,11,16那個阿?
--
※ 發信站: 批踢踢實業坊(ptt.csie.ntu.edu.tw)
◆ From: 218.184.52.18