Am not really understanding the syntax, itâs always the same, for example the first one i donât understand the for i from 0 to n-1 step 2 do, and the second one iâm not understanding the for into the while
1- the for loop is a repetition statement, i start at 0 and stop at n, i increase i +
2- i donât understand job of the step.
3- it will give us the sum of a table, exp : [4, 3, 5] if i = 2 the result will be 4+3+5
A For Loop is used to repeat a block of code a specified number of times. In this example we make use of the Step statement in 2 different ways. The first tell Excel to increment by 2 each loop, while the second tells Excel to count backwards from 10 to 1 and increment each time by -1.