A for loop is a control statement using which the programmer can give instructions
to the computer to execute a set of statement repeatedly as long as specified
condition is satisfied. It is required to specify how many times a set of statements
have to be executed, it is also called counter controlled loop.