Loops are an important programming tool. The first loop we will learn is a for loop. for loops run for a certain number of steps, which you define, during which any statements in the loop are executed.
The basic syntax is
for(some sequence of steps)
{
execute some statements
}