There are a few programming structures that are common across languages. For-loops are one of those. For loops are commonly used when an action needs to be performed a specific number of times.
Take a look at this video to begin to learn to build a working for-loop using the Arduino IDE.