求结果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
求结果
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
答案
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=...
举一反三
我想写一篇关于奥巴马的演讲的文章,写哪一篇好呢?为什么好
最新试题
热门考点
- 把边长12厘米的正方形剪成9个小正方形,每个小正方形的周长是多少?
- 回答地理的自然条件和社会经济条件有哪些?
- 在水平拉力下,重为100N的在水平方向以1.6m/s的速度做匀速直线运动,弹簧测力计的示数为5N,那么该物体所受的摩擦力大小为()N,拉力的功率为()W.
- 电影里好像经常有说到这么一句 you on your own 什么意思啊
- live ,life ,living,alive..关于live的 还有什么词,哪个是人生,哪个是生活,哪个
- “free air temperature range”指的是什么参数?
- Michael and Kangkang are with them to see them off.
- 24mlH2和O2的混合物点燃充分反应后,在恢复到原来状态,剩余气体3ml,则原来混合物中H2和O2体积各是多少
- 就像音乐“余音绕梁”这种类似的形容视觉的成语
- A-(b-c)这种形式的的怎么解,要简便计算