The basic definition of for loop is that it executes one or more statements a specified number of times. It is also known as counter control loop. The for loop is used when you know the fixed number of iterations.