Welcome!
Read about for loops on the Processing reference page.
See some example code to get you started below.
See example code of a for loop below.