用ASP编写一个阶梯形状的数字

来源:百度知道 编辑:UC知道 时间:2024/07/02 02:17:16
1
1 1
1 1 1
1 1 1 1
1 1 1 1 1
1 1 1 1 1 1
1 1 1 1 1 1 1
1 1 1 1 1 1 1 1

js:
function aa(str,c){
if(c>9){return}
response.write(str);
arguments.callee(str+="1\n",c++);
}
aa("1\n",0)
vbs:
Function aa(str,c)
If c>9 Then
Exit Function
End If
response.write str
call aa(str&"1"&vbcrlf,c+1)
End Function

aa(str&vbcrlf,1)