if語句 條件語句,判斷語句,分支語句
條件成立
邏輯運(yùn)算 多重關(guān)系
and or not 與或非 not否定一切
關(guān)系運(yùn)算
do loop
for next
for 循環(huán)變量 =初值 to 終點(diǎn)值
循環(huán)體
next
<%
for i=0 to 9
response.Write(i)
response.Write("<br>")
next
%>
數(shù)組 一堆變量的集合
變量名(下標(biāo))
dim 數(shù)組名(元素?cái)?shù)量)
dim a (2)
a(0)=5
a(1)=8
a(2)=2
respone.write(a(0)+a(1)+a(2))
多維 數(shù)組
a(5)
a(5,5)
a(5,5,5)
a(5,5,5,5)
dim a(5,5)
dim a(6)
for i=0 to 6
a(i)=i+1
next
for i=0 to 6
count =count+a(i)+1
next
response.write count
+++++++++++++++++++++++++++++++++作業(yè)
dim a(3,4)
for i=0 to 3
for j=0 to 4
a(i,j)=i*j
next
next
for j=0 to 4
for i=0 to 3
response.write a(i,j) & "<br>"
next
next
本站僅提供存儲(chǔ)服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)
點(diǎn)擊舉報(bào)。