- #1
fvnn
- 2
- 0
Here's the pseudo code:
This is what i understand from the code above - B values are from the sum of a values.
I want to know what the values of B[j] would be if A were A[1,2,3,4]. I don't need an answer i just need guidance on how to solve this.
Code:
for i := 1 to n { //i=1 and n=4
for j := i to n { //j=1
B[i][j] := 0
for k := i to j {
B[i][j] := B[i][j] + A[k]
}
}
}
This is what i understand from the code above - B values are from the sum of a values.
I want to know what the values of B[j] would be if A were A[1,2,3,4]. I don't need an answer i just need guidance on how to solve this.