var names = new Array();var i =0;do{ var next = window.prompt("enter",""); if(next>" ") names[i] = next; i++; }while(next>" ");document.write("<h2>"+(names.length)+"names entered:");document.write("<ol>");for(i in names){ document.write("<li>"+names[i]+"<br />"); }document.write("</ol>");
添加回答
举报
0/150
提交
取消