100分求一个彩票选号的算法(VBS或asp语言),解决问题再送分!!

2023-07-26 12:37发布

input_nums=request(haomazu) 以,隔开的号码组numb_array=split(input_nums,,)response.

input_nums=request("haomazu") 以,隔开的号码组numb_array=split(input_nums,",")response.
5条回答
2023-07-26 12:44

input_nums=request("haomazu") ''以,隔开的号码组
numb_array=split(input_nums,",")
response.write ubound(numb_array)&"<br>"
for i=0 to ubound(numb_array)-6
for j=i+1 to ubound(numb_array)-5
for k=j+1 to ubound(numb_array)-4
for l=k+1 to ubound(numb_array)-3
for m=l+1 to ubound(numb_array)-2
for n=m+1 to ubound(numb_array)-1
for p=n+1 to ubound(numb_array)
response.write numb_array(i)&","&numb_array(j)&","&numb_array(k)&","&numb_array(l)&","&numb_array(m)&","&numb_array(n)&","&numb_array(p)&"<br>"
next
next
next
next
next
next
next本回答被提问者采纳

一周热门 更多>