Declaring variables inside the loop
Often a variable that controls a for loop is
only needed for the purposes of the loop and
is not used elsewhere. If so, you can declare
the loop control variable in the intialisation
for(int i = 0; i < 5; i++ )
cout << “The value is” << i;