What means for i=a,1,-1 in pseudocode? -


i have code in pseudocode.

this line of code: for i=k1,1,-1 ti <- ti-1 + ti.

k1 integer. ti array.

the question is: means for i=k1,1,-1? know for don't know i=k1,1,-1.

thank you!

have i assume values k1 1 steps of -1. equivalent c:

for (i = k1; >= 1; += -1) 

the syntax in question same in fortran, been around decades:

      10,i=k1,1,-1       t(i) = t(i-1) + t(i) 10    continue 

Comments