I want to execute a multiline code for each value of the for loop. How can I do that?
i = 0, i < n, i++,
Thanks DaleSpam. I used ',' instead of ';', which was not accepted by Mathematica. This saves a lot of effort.
No problem. You can always use ; to make a compound statement, so it is a general trick that helps elsewhere too.
Separate names with a comma.