→ CKevin2003:可以問一下題目是? 推 61.216.26.21 01/08
<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>
請問如何改成正確的呢?
感謝不盡
--
※ 發信站: 批踢踢實業坊(ptt.csie.ntu.edu.tw)
◆ From: 218.184.52.18