求结果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
求结果
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
人气:185 ℃ 时间:2020-06-01 19:23:41
解答
i从0到6,七次循环,a0=1,a1=2,a2=3,a3=4,a4=5,a5=6,a6=7.count相加7次,count0=0+1+1=2count1=2+2+1=5count2=5+3+1=9count3=9+4+1=14count4=14+5+1=20count5=20+6+1=27count最终结果=27+7+1=35.这个程序实现的是count=...
推荐
- 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
- for i = 1 to 10 response.write i&"" next
- Dim a, i% a=array(1,2,3,4,5,6,7) For i =Lbound(a) to Ubound(a) a(i)=a(i) *a(i) next i print a(i)
- DIM AS INTEGER A(6),I,T,J,P T=0 FOR I=1 TO 6:A(I)=7-I:NEXT FOR I=1 TO 5 FOR J=1 TO 5 IF A(J)>A(
- 下列程序的执行结果为().dim a(10),b(5) for i=1 to 10 a(i)=i next i for j=1 to 5 b(j)=j*20 next j
- 根号2/根号8-根号3(1-根号15)-3根号1/5 我要
- 判断题 开追悼会的目的是为了寄托哀思. ( ) 《为人民服务》的写作目的就是为了悼念和赞扬张思德. (
- 这个人连穿衣服还不会呢,怎么谈得上伟大?(改成陈述句)
猜你喜欢