a = array(1,2,3,4,5):for k = 1 to 4:s = s + a(k)中的s = s + a(
1个回答
这是考你对数组的理解
a = array(1,2,3,4,5)这句后
a[0]=1;
a[1]=2;
.
a[4]=5;//注,没有a[5]了哦
s=s+a(k),就是把s+a(k)后的值,再赋给s
相关问题
VFP中 CLEAR DIMENSION a(3) FOR N=1 TO 3 S=4 a(N)=N*2+1 S=S+a(
Dim a(4) s=0 For i=1 to 4 s=s+a(i) Next i
k=1 S=0 S=S+2K K=K+1
比如:A1=3S+2;A2=4S+6,A3=8,A4=3,A5=3S,A6=10S,则B1=3*3+2;B2=4*3+6
s=0:t=o:u=0for i=1 to 3for j=1 to i for k=j to 3s=s+1next kt
a1=4,S3 S2 S4等比数列an中a1=4,前n项和Sn满足S3 S2 S4成等差数列,(1)求an通项公式 (2
『急』在等比数列{an}中,S3*S5-S4^2=-16,a2a4=32,求S4
等差数列{an}中1) S10=5a5 a7=-2 求a92) S3=S6 求a53) a1+a2+a3+a4+a5+a
{an}是等比数列,a1+a2+a3=3,s4+s5+s6=6,求an
在数列an中,设S1=a1+a2+a3,S2=a4+a5+a6,S3=a7+a8+a9.(1)若数列是等比数列,求证:S